Some test text!

menu
Migratekeyboard_arrow_down

Migrate to the New Viewer UI

If you have integrated the document viewer previously in your app (i.e. DocumentActivity or PdfViewCtrlTabHostFragment), you can easily migrate to use the new UI with a couple of simple steps.

linkPrerequisites

  • Updated PDFTron libraries to version 7.1.5 (see changelog for more info)

linkMigrate PdfViewCtrlTabHostFragment

  1. Update all references to ViewerBuilder to ViewerBuilder2. This new builder will create the new viewer fragment PdfViewCtrlTabHostFragment2, which contains the new UI.
  2. Update all references to PdfViewCtrlTabHostFragment to PdfViewCtrlTabHostFragment2 in your project.
  3. Update all references to PdfViewCtrlTabFragment to PdfViewCtrlTabFragment2 in your project.
  4. (Optional) If you have defined the CustomAppTheme style to customize your theme, you will need to change this style to extend PDFTronAppTheme and pass it into ViewerBuilder2 as described here

linkMigrate DocumentActivity

  1. Remove any calls to DocumentActivity.openDocument(...).
  2. Then launch the activity using DocumentActivity.IntentBuilder as described in this guide
  3. If you have defined the CustomAppTheme style to customize your theme, you will need to change this style to extend PDFTronAppTheme.

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.

Join our upcoming webinar to find out about built-in, full-functioning document capabilities directly in Salesforce.

Save your seat
close