Some test text!

menu
search

Get started with React Native

Welcome to PDFTron. PDFTron SDK can be integrated with React Native for both Android and iOS.

Get started with React Native

This guide will help you integrate a free trial of the PDFTron SDK into your iOS applications using React Native. Your free trial includes unlimited trial usage and support from solution engineers.

See here for the get started guide for using the PDFTron React Native SDK on Android.

linkPrerequisites

  • PDFTron SDK >= 6.10.0
  • react-native >= 0.59.0
  • npm

For trial purposes PDFTron is available without the need for a license key, however a valid license key is required to use PDFTron in a production app. If you do not have a valid license key, please contact sales for a commercial license key.

Your license key is confidential. Please make sure that it is not publicly available (e.g. in your public GitHub).

linkIntegrate

For simplicity the following guide is based on boilerplate react native app react-native init MyApp with git diff syntax for adding and removing lines from the boilerplate app.
  1. First, follow the official get started guide on setting up the React Native environment, setting up the environment, and creating a React Native project. The following steps will assume your app is created through react-native init MyApp.
  2. In MyApp folder, install react-native-pdftron by calling:
npm install git+https://github.com/PDFTron/pdftron-react-native.git --save
  1. Then link the module by calling:

    react-native link react-native-pdftron
  2. Add a Podfile in the ios folder with the following:

    target 'MyApp' do
        use_frameworks!
        pod 'PDFNet', podspec: 'https://www.pdftron.com/downloads/ios/cocoapods/pdfnet/latest.podspec'
    end
  3. In the ios folder, run:

    pod install
  4. If you need a close button icon, you will need to add the PNG resources to MyApp as well, i.e. ic_close_black_24px.
  5. Open MyApp.xcworkspace in Xcode and try to build it. If any errors occur, change the project settings as described here.

linkNext step

View a document

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.

PDFTron Receives USD$71 Million Growth Investment Led By Silversmith Capital Partners

Learn more
close