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
View mode dialogkeyboard_arrow_down

View mode dialog

In this document
chevron_rightShowing view mode dialog
chevron_rightSetting view mode dialog listener

ViewModePickerDialogFragment allows users to pick PDF page presentation mode, select page color mode, rotate pages, and crop pages.

linkShowing view mode dialog

To show view mode dialog in your activity, create a new instance of ViewModePickerDialogFragment by using newInstance(PDFViewCtrl.PagePresentationMode, boolean, boolean, int), and call show(FragmentManager, String):



where activity is an instance of Activity.

linkSetting view mode dialog listener

In order to let users to pick PDF page presentation mode, color mode, etc. You need to set view mode dialog listener. To set view mode dialog listener, call: ViewModePickerDialogFragment.setViewModePickerDialogFragmentListener(ViewModePickerDialogFragment.ViewModePickerDialogFragmentListener). Override each method in the listener to change page presentation mode, colr mode, reflow, etc.



In function onViewModeSelected(String), the selected view mode values include fowllowing:

To learn about setting page presentation mode, see PDFViewCtrl page presentation mode.
To learn about setting page color mode, see PDFViewCtrl color modes.
To learn about reflow, see reflow.
To learn about cropping pages, see crop page dialog.