Convert multiple format types to PDF
There are two options to convert a supported file format to a PDF document. First is using the PDFViewCtrl.openNonPDFUri method, which does the conversion asynchronously in the viewer and provides callbacks for handling conversion progress. The second uses the Convert API, which simply converts the document to PDF in a blocking manner.
Convert multiple formats to PDF in Android
For Android, available in the full version of the library only. See Apryse full or standard?
PDFViewCtrl has a powerful and seamless conversion system which allows you to stream documents during conversion to PDF. It supports the following file types:
Office file conversion: .docx, .pptx, .xlsx, .doc. (with the office conversion Add-On module)
Image conversion: .bmp, .jpg, .tif, .png, .gif
Image collections (zip archives with any type of image listed above)
Markdown: .md (with the office conversion Add-On module)
In this tutorial you will be able to display a non-PDF file in PDFViewCtrl.
Before going forward, please make sure you have finished setting up PDFViewCtrl as described in Using PDFViewCtrl.
View a document
The easiest way to display a non-PDF file in PDFViewCtrl is through the PDFViewCtrl.openNonPDFUri API.
Option 1: from local device storage
Storage Permission
Please follow the latest Android best practices and guidelines outlined here
Add the following when you would like to show the document, typically onCreate or onResume of your Activity or Fragment:
Option 2: from content uri
Add the following when you would like to show the document, typically onCreate or onResume of your Activity or Fragment:
To monitor the conversion event, do:
Last updated
Was this helpful?