Some test text!


Get started

Download PDFTron SDKIntegrate with GradleIntegrate manuallyRun samplesAdd license keyQuick start - view a documentProGuardUpdate to latest versionTroubleshooting

Document Viewer


Document Viewer components

PDFViewCtrlReflowFloating context menuCustomize floating context menuAnnotation toolbarAnnotation style editorCustomize annotation style editorPage sliderAnnotation listDocument outlineUser bookmark listList containerThumbnail browserAdd pages dialogRotate pages dialogView mode dialogCrop pages dialog

Annotation and collaboration

OverviewRead only modeDisable annotation creation/editingDefault annotation propertiesAnnotation propertiesEventsOverride annotation handlingShow and hide existing annotationsUndo and redoRealtime collaboration

Advanced customization

Add a custom view to a pageCreate a custom toolPage coloring modePage fit modePage layout mode


Convert documents to PDFConvert HTML to PDF


Text search

Other Frameworks


Advanced topics

Understand coordinatesDocument savingDocument lockingGenerate page thumbnailsTool class hierarchy


System RequirementsRun project in Android StudioRun project with source codePDFTron full vs. standardLocalizationIcon cheat sheetReduce size of APKEnable multidexOut of memory when rotating device multiple timesReduce memory consumptionDetachCurrentThread warning

PDF Processing API

What is PDFNet?Opening a documentSerializing (saving) a documentWorking with pagesWorking with Page ContentWorking with BookmarksWorking with Interactive Forms (AcroForms)PDF SecurityLow-level PDF APIError handling
Show and hide existing annotationskeyboard_arrow_down

Show and hide existing annotations

In this document
chevron_rightShow/hide an annotation on
chevron_rightShow/hide all annotations on PDFViewCtrl.

By default, PDFViewCtrl shows all annotations on PDF document. If you want to hide a particular annotation on PDFViewCtrl, or hide all annotations on PDFViewCtrl, you can hide annotations as follows:

linkShow/hide an annotation on PDFViewCtrl.

To show a hidden annotation on PDFViewCtrl, call showAnnotation(Annot):

To hide an annotation on PDFViewCtrl, call hideAnnotation(Annot).

After hide/show an annotation on PDFViewCtrl, You must call update(Annot, int) to redraw the area covered with the given annotation.

linkShow/hide all annotations on PDFViewCtrl.

Alternatively, you can show/hide all annotations on PDFViewCtrl by calling setDrawAnnotations(boolean). This method enables or disables annotations and forms from rendering.

For example, disabling annotations from rendering:

After enabling/disabling annotations from rendering on PDFViewCtrl, You must call update(boolean) to redraw the pdf content.