Project to compile PDFium library to multiple platforms.
This project currently compiles to these platforms:
Platforms in roadmap:
Obs: PDFium project is from Google and i only patch it to compile to all platforms above. Check all oficial details and PDFium license here:
https://pdfium.googlesource.com/
Since this project generate WASM version, i published a demo that you can test PDFium direct on web browser here:
https://pdfviewer.github.io
Or with a public PDF as parameter:
https://pdfviewer.github.io/?title=Demo%20PDF%20with%201MB&url=https://raw.githubusercontent.com/mozilla/pdf.js-sample-files/master/tracemonkey.pdf
Obs: Generally Python 3 already come with PIP installed. Check it with command python3 -m pip --version
.
These are the general
steps that need be executed before all
others platforms steps.
git clone https://github.com/paulocoutinhox/pdfium-lib.git
cd pdfium-lib
python3 -m pip install -r requirements.txt
python3 make.py build-depot-tools
export PATH=$PATH:$PWD/build/depot-tools
Obs:
make.py
need be executed with Python version 3.one
time.pdfium
git branch, edit file modules/config.py
and others places with same branch name.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/paulocoutinhox/pdfium-lib/releases
Check tutorial here: How to include files
Support the continuous development of this project.
This license informations is about this personal project, not the Google PDFium Library.
MIT
Copyright (c) 2018-2024, Paulo Coutinho