Some test text!

keyboard_arrow_down

Get started

Quick start - view a documentDownload PDFTron SDKIntegrate with GradleIntegrate manuallyRun samplesAdd license keyUpdate to latest versionTroubleshooting
keyboard_arrow_down

FAQ

System requirementsDocument lockingDocument savingRun project in Android StudioRun project with source codePDFTron full vs. standardReduce size of APK
keyboard_arrow_down

Document Viewer

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

Document Viewer components

OverviewPDFViewCtrlReflowQuick menuCustomize quick menuAnnotation toolbarAnnotation style editorCustomize annotation style editorPage sliderList containerAnnotation listDocument outlineUser bookmark listThumbnail browserAdd pages dialogCrop pages dialogRotate pages dialogView mode dialog
keyboard_arrow_down

Annotation and collaboration

OverviewRead only modeDisable annotation creation and editingDefault annotation propertiesChange tool modeEventsOverride annotation handlingShow and hide existing annotationsUndo and redoRealtime collaboration
keyboard_arrow_down

Advanced customization

OverviewAdd a custom view to a pageCreate a custom toolPage coloring modePage fit modePage layout modeScrolling directionRight-to-left support
keyboard_arrow_down

Conversion

Convert documents to PDFConvert HTML to PDF
keyboard_arrow_down

Parsing and extraction

Text extraction
keyboard_arrow_down

Digital signatures

keyboard_arrow_down

Search

Text search
keyboard_arrow_down

Advanced topics

PrintUnderstand coordinatesGenerate page thumbnailsChange annotation propertiesDelete annotationsTool class hierarchy
keyboard_arrow_down

Other frameworks

keyboard_arrow_down

Troubleshooting

Multidex build errorReduce memory consumptionDetachCurrentThread warning
keyboard_arrow_down

Reference

keyboard_arrow_down

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
Annotation style editorkeyboard_arrow_down

Annotation style editor

In this document
chevron_rightShow an annotation style dialog
chevron_rightListen to annotation style changes

AnnotStyleDialogFragment is a DialogFragment that shows annotation style properties in a bottom sheet view. With this style dialog, users can change the annotation color with the advanced color picker or directly select preset styles. The style dialog also provides a recent and a favorite list for quick access.

To learn about customizing style dialog, see the customize style dialog guide.

linkShow an annotation style dialog

The AnnotationStyleDialogFragment.Builder class allows you to create an AnnotStyleDialogFragment with a specified AnnotStyle. The AnnotStyle represents the initial annotation style to display.

Example

Afterwards, to show an annotation style dialog call show(FragmentManager). Similarly, to dismiss the annotation style dialog programmatically call dismiss().

linkListen to annotation style changes

You can listen to annotation style changes by setting an OnAnnotStyleChangeListener to your AnnotStyleDialogFragment using setOnAnnotStyleChangeListener. The AnnotStyleDialogFragment raises an event when a style change occurs (such as a color change, thickness change, text color change, etc.), allowing you to define custom behavior for such events.

To learn about changing annotation style, see the change annotation properties guide.