Some test text!

Getting started

Running samplesTry demo in your projectDownloading PDFTronIntegrating PDFTron via GradleManually integrating PDFTronUpgradingAdding PDFTron license keyUsing ProGuardTroubleshooting integration


Document lockingSaving PDF documentsUnderstanding coordinates


Using an ActivityUsing a FragmentUsing PDFViewCtrlViewer configConverting and viewing other document typesConverting HTML to PDF


PDFViewCtrl color modesPDFViewCtrl page view modePDFViewCtrl page presentation modeGenerating thumbnails in PDF


Day/Night themesUndo and redoText searchAnnotation syncingRotating PDF pagesPDFViewCtrl read onlyUsing PDFViewCtrl with minimum memory


Tools overviewSetting Up ToolManagerChanging and disabling toolsIntercepting annotation handlingToolManager eventsDefault annotation propertiesTool subclasses


Deleting annotationsAnnotation styleShow/hide annotations

UI components

Quick menuAnnotation toolbarAnnotation style dialogThumbnail sliderAnnotations listOutline listUser bookmarks listBookmarks dialogPage thumbnails dialogAdd page dialogRotate pages dialogView mode dialogCrop page dialogReflow


Adding a custom view to a PDF pageCustom toolCustomizing quick menuCustomizing annotation style dialog


Running project in Android StudioSystem RequirementsPDFTron full vs. standardLocalizationIcon cheat sheetRunning sample with sourceReducing size of APKEnable multidexOut of memory when rotating device multiple timesDetachCurrentThread 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
Quick menukeyboard_arrow_down

Quick 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: