📘

Mobile Locker uses PDFTron to display PDF files

iOS can display PDF files natively, but it is not very good and can crash when opening complex PDFs.

Mobile Locker for iOS uses PDFTron library to display PDF files.

Direct links or JavaScript

The PDF must be included in your ZIP file.

<!-- A direct link to a relative PDF will by opened by the PDF viewer. -->
<a href="pdf/employee-handbook.pdf">Employee Handbook</a>
// Or you can open it from JavaScript.
// The relative path is the first parameter.  The title is the second.
mobilelocker.openPDF('pdf/product-info.pdf', 'Product Information');
763

When the user taps that link, the app will intercept it and open that PDF in PDFTron:

765