Some test text!

menu

Cordova PDF library documentation

PDFTron technology brings smooth, flexible and stand-alone document viewing and editing solutions for local and server codebases setup using Cordova for iOS, Android and Windows as well as various browsers.

PDTron SDK is trusted by thousands of innovative startups, governments, and Fortune 500 businesses (see customers). It is built from the ground up and is not dependent on any external third-party open-source software with support available from Developers and Solution Engineers.

Get started on WebViewerGet started on AndroidGet started on iOS

linkImplementation

Depending on your requirements and preferred development environment, PDFTron can be integrated into a Cordova project through our native iOS or Android plugin, as well as through our pure JavaScript library (WebViewer).

The relative strengths of each approach are outlined below. This will help you decide which approach with Cordova best suits your needs.

Webviewer

Native plugin

Relative strengths of WebViewer

  • Extensive API: The full WebViewer API is immediately available. (The native plugins currently expose a subset of their APIS to JavaScript.)
  • Identical API: The API used for a website written using WebViewer will be 100% identical that used in the Ionic/Cordova app.
  • Identical UI: The UI is the same across all devices (rather than adopting the platform's UI norms).
  • .xod files: The WebViewer can open and render .xod files, which are PDF files that have been optimized for web-viewing. (PDF files can also be rendered directly, but with degradation in performance.)

Two ways to use Cordova with PDFTron technology:

WebViewerNative plugin

linkGitHub samples

linkWebViewer

WebViewer is a pure client-side JavaScript library to view, annotate and edit documents. It is compatible with any JavaScript framework, including Cordova, by using a DOM element to place the document viewing component. WebViewer has a pre-built Cordova sample specifically designed for integrating into a Cordova project.

Launch Online Demo

PDFTron’s fully supported WebViewer is trusted by thousands of innovative startups, governments, and Fortune 500 businesses (see customers). PDFTron technology is built from the ground up and is not dependent on any external third-party open-source software.

linkWorks with

  • Desktop Browsers
  • Mobile Browsers
  • Windows Desktop Applications

linkCustomizable

linkFile type support - web

  • PDF, PDF/A
  • DOCX, XLSX, PPTX (MS Office software or licenses are not required)
  • JPG, PNG

linkBrowser support

BrowserSupported versions
ChromeAll ✓
FirefoxAll ✓
SafariAll ✓
EdgeAll ✓
Internet Explorer10+
Android Chrome59+
Mobile Safari11+

Cordova Windows Documentation
For more information about Windows Platform Support.

Cordova Android Documentation
For more information about Android Platform Support.

Cordova iOS Documentation
For more information about iOS Platform Support.

linkNative plugin

The Native Plugin provides identical JavaScript interfaces to PDFTron's native mobile SDKs for iOS and Android which are designed to mirror the WebViewer API.

The NativeViewer is a part of the Native Plugin and provides a sizable subset of the WebViewer API and functionality and is more consistent with mobile performance and user expectations. For iOS, it exposes a PTDocumentViewController, and for Android, it exposes a PdfViewCtrlTabHostFragment. Visit our Cordova github sample.

Launch Online iOS DemoLaunch Online Android Demo

linkWorks with

  • Android Applications
  • iOS Applications

linkOS support

  • Android 4.1+ (API Level 16)
  • iOS 9+

linkFile type support - native

PDF

FormatAndroid / Xamarin.AndroidiOS / Xamarin.iOSUWP
PDF (1.x to 2.0)
PDF/A 1,2,3
XFDF
FDF

Office

FormatAndroid / Xamarin.AndroidiOS / Xamarin.iOSUWP
DOC
DOCX
XLS
XLSX
PPT
PPTX

^ MS Office software or licenses are not needed to support Word, Excel, and PowerPoint file types.

Image

FormatAndroid / Xamarin.AndroidiOS / Xamarin.iOSUWP
SVG
BMP
WMF
EMF
GIF
HDP
JPG
JP2, JPC
PNG
TIF

Other

FormatAndroid / Xamarin.AndroidiOS / Xamarin.iOSUWP
RTF
HTML
TXT
XPS
XOD

linkFree trial

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.