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.
Prerequisites
Updated Apryse libraries to version 8.0.0 (see changelog for more info)
Migrate PdfViewCtrlTabHostFragment
Update all references to
ViewerBuildertoViewerBuilder2. This new builder will create the new viewer fragmentPdfViewCtrlTabHostFragment2, which contains the new UI.Update all references to
PdfViewCtrlTabHostFragmenttoPdfViewCtrlTabHostFragment2in your project.Update all references to
PdfViewCtrlTabFragmenttoPdfViewCtrlTabFragment2in your project.(Optional) If you have defined the
CustomAppThemestyle to customize your theme, you will need to change this style to extendPDFTronAppThemeand pass it intoViewerBuilder2as described in our customize viewer theme guide.
Migrate DocumentActivity
Remove any calls to
DocumentActivity.openDocument(...).Then launch the activity using
DocumentActivity.IntentBuilderas described in this guide.If you have defined the
CustomAppThemestyle to customize your theme, you will need to change this style to extendPDFTronAppTheme.
Last updated
Was this helpful?