Giter Club home page Giter Club logo

pdfium-lib's Introduction

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:

  • iOS device (armv7, arm64)
  • iOS simulator (x86_64)
  • Android (armv7, armv8, x86, x86_64)
  • macOS (x86_64, arm64)
  • 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://raw.githubusercontent.com/mozilla/pdf.js-sample-files/master/tracemonkey.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/paulocoutinhox/pdfium-lib.git
cd pdfium-lib
  1. Install PIP requirements:
pip install -r requirements.txt
  1. 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

How to compile for macOS (with Apple Silicon - M1)

Check tutorial here: Build for macOS

How to compile for Android

Check tutorial here: Build for Android

How to compile for WASM

Check tutorial here: Build for WASM

Prebuilt binary

Access releases page to download prebuilt binaries:

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

How to include files and extend pdfium

Check tutorial here: How to include files

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

Copyright (c) 2018-2022, Paulo Coutinho

pdfium-lib's People

Contributors

paulocoutinhox avatar priestch avatar raghuwanshi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.