Some test text!


Get started

Download PDFTron SDKIntegrate with GradleIntegrate manuallyRun samplesAdd PDFTron 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

OverviewToolManager setupRead 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
Floating context menukeyboard_arrow_down

Floating context menu

In this document
chevron_rightQuick menu events
chevron_rightHide quick menu items
chevron_rightDisable quick menu

QuickMenu extends RelativeLayout and is a child of PDFViewCtrl. By default, it shows up when a user long presses on a blank space or on text of PDFViewCtrl. It has a maximum of two rows of icons, and an overflow text list.

Long press on blank space
Long press on blank space overflow
Long press on text
Long press on text overflow
To learn about each icon, see the icon cheat sheet.
To learn about how to customize the quick menu, see the customize quick menu guide.

linkQuick menu events

The quick menu has a number of built-in events. For example events will be raised when the quick menu is shown, dismissed or an item is clicked. Thus, you can have custom behavior when a quick menu item is clicked.

If your activity is using PdfViewCtrlTabHostFragment for showing pdf:

Otherwise you can register the ToolManager.QuickMenuListener:

linkHide quick menu items

If there are tools that you would like to remove from the quick menu, you can disable them via the ToolManager.disableToolMode API. For example:

Then, when long pressing on text, you will see:

linkDisable quick menu

If you would like to disable the long press quick menu, you can do so via the ToolManager.setDisableQuickMenu API. For example: