urish / pdfium-wasm

Building PDFium for Web Assembly

Home Page:https://hub.docker.com/r/urish/pdfium-wasm/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pdfium-wasm

PDFium compiled for Web Assembly

Usage

Currently only usage inside Node.js is supported. Most of the public PDFium API is available. To install this to your project simply run:

npm install --save pdfium-wasm

Check out the example project for a simple usage example.

Building

Build with docker:

docker build -t pdfium-wasm .

Building & Running Example

docker build -t pdfium-example example
docker run pdfium-example

This should load example/src/web-assembly.pdf and print the number of page. See the source code.

About

Building PDFium for Web Assembly

https://hub.docker.com/r/urish/pdfium-wasm/

License:MIT License


Languages

Language:Dockerfile 37.7%Language:C 34.7%Language:Shell 14.8%Language:JavaScript 12.8%