# pdfium-lib **Repository Path**: xiongjianfei/pdfium-lib ## Basic Information - **Project Name**: pdfium-lib - **Description**: No description available - **Primary Language**: C++ - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-23 - **Last Updated**: 2022-01-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

PDFium Library Logo

PDFium Library

PDFium - iOS PDFium - macOS PDFium - Android PDFium - WASM

Project to compile PDFium library to multiple platforms.


## Platforms This project currently compiles to these platforms: - [x] iOS device (armv7, arm64) - [x] iOS simulator (x86_64) - [X] Android (armv7, armv8, x86, x86_64) - [x] macOS (x86_64, arm64) - [x] WASM (web assembly) Platforms in roadmap: - [ ] Linux - [ ] Windows 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/ ## Web demo Since this project generate WASM version, i published a demo that you can test PDFium direct on web browser here: https://pdfviewer.github.io/?title=Demo%20PDF%20with%201MB&url=https://file-examples-com.github.io/uploads/2017/10/file-example_PDF_1MB.pdf ## Requirements 1. Ninja Build 2. Python 3 3. PIP ## How to compile These are the `general` steps that need be executed `before all` others platforms steps. 1. Get the source: ``` git clone https://github.com/paulo-coutinho/pdfium-lib.git cd pdfium-lib ``` 2. Install PIP requirements: ``` pip install -r requirements.txt ``` 3. Get Google Depot Tools: ``` python make.py 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, edit file `modules/config.py` and execute `step 4`. ## How to compile for iOS Check tutorial here: [Build for iOS](docs/BUILD_IOS.md) ## How to compile for macOS (with Apple Silicon - M1) Check tutorial here: [Build for macOS](docs/BUILD_MACOS.md) ## How to compile for Android Check tutorial here: [Build for Android](docs/BUILD_ANDROID.md) ## How to compile for WASM Check tutorial here: [Build for WASM](docs/BUILD_WASM.md) ## Prebuilt binary Access releases page to download prebuilt binaries: https://github.com/paulo-coutinho/pdfium-lib/releases ## How to include files and extend pdfium Check tutorial here: [How to include files](docs/HOW_TO_INCLUDE_FILES.md) ## Buy me a coffee Support the continuous development of this project. Buy Me a Coffee at ko-fi.com ## License This license informations is about this personal project, not the Google PDFium Library. [MIT](http://opensource.org/licenses/MIT) Copyright (c) 2018-2021, Paulo Coutinho