https://github.com/toeverything/pdfium-builder
https://github.com/toeverything/pdfium-builder
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/toeverything/pdfium-builder
- Owner: toeverything
- Created: 2024-10-12T02:51:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-08T14:14:53.000Z (over 1 year ago)
- Last Synced: 2025-04-15T20:54:46.360Z (about 1 year ago)
- Language: TypeScript
- Size: 465 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## PDFium Builder
PDFium dynamic library and static library builder, inspired by [pdfium-binaries] and [pdfium-lib].
| OS | CPU | Toolchain | Ext |
| ----- | ----- | ---------- | ----- |
| wasm | wasm | Emscripten | .wasm |
| mac | arm64 | | |
| mac | x64 | | |
| linux | arm64 | | |
| linux | x64 | | |
| win | arm64 | | |
| win | x64 | | |
### Usage
```console
$ just --list
$ just build pack
$ just build-wasm
$ just list-exported-functions | fzf
$ eza -T dist
dist
├── include
│..........
│ ├── fpdf_thumbnail.h
│ ├── fpdf_transformpage.h
│ └── fpdfview.h
├── lib
│ └── libpdfium.a
├── pdfium.js
└── pdfium.wasm
```
### Local Build
Creates a `.env` file
```console
$ cat .env
TARGET_OS = "mac"
TARGET_CPU = "arm64"
STATIC_LIB = true
DEBUG = false
PDFIUM_VERSION = "6666"
```
[pdfium-binaries]: https://github.com/bblanchon/pdfium-binaries
[pdfium-lib]: https://github.com/paulocoutinhox/pdfium-lib