Some test text!

menu
search
View hierarchykeyboard_arrow_down

Document viewer

The document viewer is provided in three different forms:

UI overview

linkDocumentActivity

This activity contains all features in PdfViewCtrlTabHostFragment, PdfViewCtrlTabFragment and PDFViewCtrl.

DocumentActivity is easy to integrate, however runtime customization is not possible. A typical use case for DocumentActivity is when you require minimal UI and behaviour customization. Events are not available, however customization is possible through configuration.

Learn how to show a document using an activity here.

linkPdfViewCtrlTabHostFragment

This fragment contains all features in PdfViewCtrlTabFragment and PDFViewCtrl.

PdfViewCtrlTabHostFragment gives you full control over UI and behaviour customization. Configuration and events are both available. This is the recommended way to integrate the document viewer.

Learn how to show a document using a fragment here.

linkPdfViewCtrlTabFragment

This fragment contains all features in PDFViewCtrl.

PdfViewCtrlTabFragment is used by each tab in PdfViewCtrlTabHostFragment. This Fragment's layout consists of an AnnotationToolbar and a PDFViewCtrl. For a single-tab document viewer, it's possible to use this fragment by itself however you will miss out on UI components such as the view mode settings dialog and thumbnail viewer. A better approach would be to disable tabs in PdfViewCtrlTabHostFragment.

linkPDFViewCtrl

This ViewGroup is the core component for interactive document viewing.

PDFViewCtrl does not come with any toolbars or UI controls. A typical use case for PDFViewCtrl is when you need very fine control over the individual component and your requirements are very different than what PdfViewCtrlTabHostFragment offers.

Learn how to show a document using a ViewGroup here.

If you have any questions about these document viewer options, please feel free to contact the PDFTron support team.

linkLearn more

  • Interactive annotation tools: The key component of the document viewer responsible for interactively creating/modifying/deleting annotations, filling forms, signing, selecting text, following links, and playing multimedia etc. It is managed by a ToolManager class. To customize ToolManager behaviour, see the ToolManager configuration guide.
  • Interactive UI components: The key component of the document viewer responsible for other interactive features such as reflow, document outline, list of annotations, page manipulation, and page cropping etc.

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.

PDFTron Receives USD$71 Million Growth Investment Led By Silversmith Capital Partners

Learn More
close