Installation
Install the package and understand what gets pulled in at runtime.
Install the package
bun add @omsimos/pdf-rasterRuntime model
Server-side only
This package is meant for Node.js and Bun. Do not import it into browser bundles.
The library is native and server-side:
- supported runtimes: Node.js and Bun
- rendering backend: PDFium
- primary output: image
Buffers for each page
Use it in:
- backend jobs
- API routes and route handlers
- worker processes
- document-processing services
What the package contains
Installing @omsimos/pdf-raster gives you:
- the JavaScript API
- a native
.nodebinding for the current platform - the matching PDFium shared library used for rendering
The goal is still a thin JavaScript surface with native rendering under the hood.