Some test text!

Getting started

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

Fundamentals

keyboard_arrow_down
Document lockingSaving PDF documentsUnderstanding coordinates

Basics

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

Viewer

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

Features

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

Tools

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

Annotations

keyboard_arrow_down
Deleting annotationsAnnotation styleShow/hide annotations

UI components

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

Advanced

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

FAQ

keyboard_arrow_down
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

keyboard_arrow_down
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.

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