/pdfium-lib

PDFium - Compile instructions and tools for all supported platforms

Primary LanguagePythonMIT LicenseMIT

PDFium Library

PDFium - iOS PDFium - macOS PDFium - Android

This project compile PDFium to all supported platforms. Current project compiles to:

  • iOS device (armv7, arm64)
  • iOS simulator (x86_64)
  • Android (armv7, armv8, x86, x86_64)
  • macOS (x86_64)
  • Linux
  • Windows

Requirements

  1. ninja (brew install ninja)
  2. python
  3. pip

Obs: Only python version 3 is supported

How to compile (general)

  1. Get the source:
    git clone https://github.com/prsolucoes/pdfium-lib.git
    cd pdfium-lib

  2. Install pip requirements:
    pip3 install -r requirements.txt

  3. Get Google Depot Tools:
    python3 make.py run build-depot-tools
    export PATH=$PATH:$PWD/build/depot-tools

Obs:

  • The file make.py need be executed with python version 3.
  • These steps you only need make one time.
  • If you change pdfium git commit revision on file modules/config.py only execute step 4.

How to compile for iOS

Check tutorial here: Build for iOS

How to compile for macOS

Check tutorial here: Build for macOS

How to compile for Android

Check tutorial here: Build for Android

Prebuilt binary

Access releases page to download prebuilt binaries:

https://github.com/prsolucoes/pdfium-lib/releases

How to include files and extend pdfium

Check tutorial here: How to include files