Some test text!

Get started

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

Document Viewer

keyboard_arrow_down
Show a document in an ActivityShow a document in a FragmentViewer configurationDay and Night themesOpen from online URL

Document Viewer components

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

Annotation and collaboration

keyboard_arrow_down
OverviewSet up ToolManagerRead only modeDisable annotation creation/editingDefault annotation propertiesAnnotation propertiesEventsOverride annotation handlingShow and hide existing annotationsUndo and redoRealtime collaboration

Advanced customization

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

Conversion

keyboard_arrow_down
Convert documents to PDFConvert HTML to PDF

Search

keyboard_arrow_down
Text search

Other Frameworks

keyboard_arrow_down
XamarinReact Native

Advanced topics

keyboard_arrow_down
Understand coordinatesDocument savingDocument lockingGenerate page thumbnailsTool class hierarchy

FAQ

keyboard_arrow_down
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

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
Viewer configurationkeyboard_arrow_down

Viewer configuration

Both DocumentActivity and PdfViewCtrlTabHostFragment are highly configurable. All UI elements' visibility can be controlled via configuration. As well as PDFViewCtrl configuration and ToolManager configuration.

Default DocumentActivity/PdfViewCtrlTabHostFragment configuration can be modified via ViewerConfig.Builder builder.

For example:




Default configuration of PDFViewCtrl can be modified via PDFViewCtrlConfig class, which can then be passed on to ViewerConfig class.

For example:




Default configuration of ToolManager can be modified via a style resource, which can then be passed on to ViewerConfig class. For example:




R.style.MyToolManager is explained here: Initialize ToolManager.

Alternatively, you can also configure ToolManager by setting ToolManagerBuilder to an instance of ViewerConfig.




Lastly, you can use the config object to create a DocumentActivity or PdfViewCtrlTabHostFragment.

For example: