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, arm64)
- Linux
- Windows
- WASM (web assembly)
You can test pdfium on web browser here:
https://paulo-coutinho.github.io/pdfium-lib/
- ninja (brew install ninja)
- python
- pip
Obs: Only python version 3 is supported
-
Get the source:
git clone https://github.com/prsolucoes/pdfium-lib.git
cd pdfium-lib
-
Install pip requirements:
pip3 install -r requirements.txt
-
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.
Check tutorial here: Build for iOS
Check tutorial here: Build for macOS
Check tutorial here: Build for Android
Check tutorial here: Build for WASM
Access releases page to download prebuilt binaries:
https://github.com/paulo-coutinho/pdfium-lib/releases
Check tutorial here: How to include files