Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/urish/pdfium-wasm
Building PDFium for Web Assembly
https://github.com/urish/pdfium-wasm
pdf pdfium wasm wasm-modules web-assembly
Last synced: 3 months ago
JSON representation
Building PDFium for Web Assembly
- Host: GitHub
- URL: https://github.com/urish/pdfium-wasm
- Owner: urish
- License: mit
- Created: 2018-06-12T07:37:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-18T10:37:31.000Z (about 4 years ago)
- Last Synced: 2024-11-05T10:45:22.595Z (3 months ago)
- Topics: pdf, pdfium, wasm, wasm-modules, web-assembly
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/urish/pdfium-wasm/
- Size: 219 KB
- Stars: 71
- Watchers: 4
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:```shell
npm install --save pdfium-wasm
```Check out the [example project](https://github.com/urish/pdfium-wasm-example) for a simple usage example.
## Building
Build with docker:
```bash
docker build -t pdfium-wasm .
```## Building & Running Example
```bash
docker build -t pdfium-example example
docker run pdfium-example
```This should load [example/src/web-assembly.pdf](example/src/web-assembly.pdf) and print the number
of page. See the [source code](example/src/pagecount.c).