Some test text!

menu
Integratekeyboard_arrow_down

Integrate iOS PDF library with Flutter

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

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

linkPrerequisites

  • PDFTron SDK >= 6.9.0
  • Flutter >= 1.0.0
No trial license key required.
The trial of PDFTron SDK works without a license key. A commercial license key is required for use in a production environment. Please fill out our licensing form if you do not have a valid license key.
Keep your commercial license key confidential.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).

linkIntegrate

For simplicity the following guide is based on a boilerplate flutter app for flutter create myapp with git diff syntax for adding and removing lines from the boilerplate app.

  1. First follow the Flutter get started guides to install, set up an editor, and create a Flutter Project. The rest of this guide assumes your project is created by running flutter create myapp.
  2. Add the following dependency to your Flutter project in myapp/pubspec.yaml:

    dependencies:
       flutter:
         sdk: flutter
    +  pdftron_flutter:
    +    git:
    +      url: git://github.com/PDFTron/pdftron-flutter.git
  3. Navigate to your myapp folder and run flutter packages get.
  4. Open myapp/ios/Podfile and make these changes:

    # Uncomment this line to define a global platform for your project
    -# platform :ios, '9.0'
    +  platform :ios, "9.3"
    ...
        target 'Runner' do
            ...
    +  # PDFTron Pods
    +  use_frameworks!
    +  pod 'PDFNet', podspec: 'https://www.pdftron.com/downloads/ios/cocoapods/pdfnet/latest.podspec'
        end
  5. Run flutter build ios --no-codesign to ensure integration process is successful.

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.

Join our live demo to learn about use cases & capabilities for WebViewer

Learn more
close