Some test text!
This guide will help you integrate a free trial of the PDFTron Native Plugin for iOS applications using Cordova. Your free trial includes unlimited trial usage and support from solution engineers.
Note: There are other approaches that can be used to integrate PDFTron technology with Cordova. Please see this FAQ page to find out more about the relative strengths of each approach.
Take note of the location of your `PDFNet.dmg` download.
If you don't already have a Cordova codebase, start one. If you do, then make sure iOS is added as a platform and skip to integration.
Create a new Cordova project called
cordova create pdfhello com.example.pdf pdfhello cd pdfhello
Add iOS as a platform to build the Cordova application for.
cordova platform add ios
pdftron-cordova plugin in your project directory.
cordova plugin add https://github.com:PDFTron/pdftron-cordova.git
PDFNet.dmg download, copy the
/Lib/ folder into
Open the project in Xcode. You can do this by double-clicking the
Select the project in the left pane and go to the
General tab. Scroll down to find the
Embedded Binaries section. Here, add
Lib/Framework-dynamic.PDFNet.framework from the
Lib/ folder you copied into your project. You can do this by dragging them in from Finder or by clicking the
+ sign to browse your files.
Go to the
Build Phases tab and click on the
+ button to add a
New Run Script Phase. Copy and paste the following into the shell command:
This will ensure invalid slices are striped from the framework before being submitted to the app store (a longstanding Xcode bug).
Get the answers you need: Support