Did you find this guide helpful?
Some test text!
Android / Guides / Migrate from legacy viewer
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.
ViewerBuilder
to ViewerBuilder2
. This new builder will create the new viewer fragment PdfViewCtrlTabHostFragment2
, which contains the new UI.PdfViewCtrlTabHostFragment
to PdfViewCtrlTabHostFragment2
in your project.PdfViewCtrlTabFragment
to PdfViewCtrlTabFragment2
in your project.CustomAppTheme
style to customize your theme, you will need to change this style to extend PDFTronAppTheme
and pass it into ViewerBuilder2
as described in our customize viewer theme guide.DocumentActivity.openDocument(...)
.DocumentActivity.IntentBuilder
as described in this guide.CustomAppTheme
style to customize your theme, you will need to change this style to extend PDFTronAppTheme
.Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales