Some test text!

Adding PDFNet to your project

In this document
chevron_rightManual Integration (Dynamic Framework)
chevron_rightCocoapods Integration

This guide explains how to aquire PDFNet and add it to your project. Once PDFNet is part of your project, please see how to show a PDF to get started using PDFNet.

An evaluation or commercial license key is required to run PDFTron. If you are evaluating the SDK and do not have a key, please obtain one, and then visit this page via the link included in the trial email. If your company has licensed PDFTron then you already received your key in an email from team@pdftron.com. See sign in for more details.
Development Requirements
  • PDFNet requires the latest release version of Xcode available at the time of the SDK's release.
  • PDFNet supports the two most recent major versions of iOS at the time of its release (currently iOS 10 and iOS 11).

There are two ways to download and add PDFNet to an app: manually or with Cocoapods.

The manual download includes the framework binaries, sample projects and source code for the UI framework (Tools.framework); Cocoapods includes only the framework binaries only.

linkManual Integration (Dynamic Framework)

  1. An evaluation or commercial license key is required to run PDFTron. If you are evaluating the SDK and do not have a key, please obtain one, and then visit this page via the link included in the trial email. If your company has licensed PDFTron then you already received your key in an email from team@pdftron.com. See sign in for more details.

  2. Copy the /Lib directory to an appropriate location for your project.

  3. Drag the dynamic PDFNet and Tools frameworks (Lib/Framework-dynamic/PDFNet.framework, Lib/Tools/Tools.framework) into the "Embedded Binaries" section of your project, as indicated below.

    The pink rectangle shows where to drag PDFNet.framework and Tools.framework
  4. In your target's build phases, a) add a new run script phase (by clicking on the '+'), and b) add the following script:

    bash "$BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/PDFNet.framework/strip-framework.sh"

    This will ensure invalid slices are striped from the framework before being submitted to the app store (a longstanding Xcode bug).

    Create a new run script phase, and add the text as shown.

linkCocoapods Integration

PDFNet is available via Cocoapods. The Cocoapods package does not include sample code or source code for the UI framework Tools.framework — please use the manual download for these.

To integrate PDFNet with Cocoapods, contact us, and then visit this page from the link provided in the email. (This is an automated process and is fast to complete.) The full instructions will then be available here.






Note: Cocoapods distributes the dynamic framework only. If you wish to use the static framework, you will have to integrate it manually.