# pdfium-render

> A high-level idiomatic Rust wrapper around Pdfium, the C++ PDF library used by the Google Chromium project.

Source: https://talira.ai/catalog/pdfium-render-yyd0t2g5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [documents / pdf / rendering](https://talira.ai/categories/documents/pdf/rendering), [languages / rust](https://talira.ai/categories/languages/rust)
- Platforms: web[^1]
- Licence: MIT OR Apache-2.0[^2][^3]
- Pricing: Free and open source[^2][^3]
- Free tier: yes[^2][^3]
- Self-hostable: yes[^2]
- Creator: Alastair Carey (ajrcarey)

pdfium-render gives Rust a high-level, idiomatic API over Pdfium, the C++ PDF engine in [Google Chrome](https://talira.ai/catalog/google-chrome-hn7ybm77.md). Through it a Rust program can render pages or parts of pages to bitmaps (as `image` crate images), extract text and images, fill and inspect form fields, inspect signatures, attachments, annotations and links, concatenate documents, and create pages with text, path and image objects. It binds to a Pdfium library at runtime (or links one statically), so the same code can compile to WebAssembly and run in a browser next to a WASM build of Pdfium. Pdfium itself isn't included: you download a prebuilt binary or build it.

## Links

- GitHub: https://github.com/ajrcarey/pdfium-render
- Docs: https://docs.rs/pdfium-render

## Problems it solves

- turn each page of a PDF into a JPEG or PNG from Rust
- make thumbnails of uploaded PDFs in a Rust web service with Chrome's PDF engine
- fill in PDF form fields from Rust and save the result
- extract text with positions from PDF pages in Rust
- render PDFs in the browser from a Rust WebAssembly app
- merge PDF documents and add watermarks from Rust
- read digital signatures, attachments and annotations from a PDF in Rust
- add text, shapes and images to PDF pages using Pdfium from Rust
- use Pdfium from Rust without writing unsafe FFI calls myself
- render only a region of a large PDF page, or tile it, at high resolution

## Features

- render pages, or portions of pages, to bitmaps and image crate images
- text and image extraction
- form field introspection and filling
- signature, attachment, annotation and link introspection
- document concatenation and watermarking
- create documents, pages, and text, path and bitmap page objects
- custom fonts and custom text shaping inside a text object
- binds to Pdfium at runtime (dynamic) or links it statically
- compiles to WebAssembly alongside a WASM build of Pdfium
- thread-safe access through a mutex (default feature)
- crate features pin a specific Pdfium API version

## Limitations

- Doesn't include or build Pdfium: you supply a prebuilt Pdfium library to bind at runtime or link statically[^1]
- Doesn't speed anything up with threads: every call into Pdfium is serialized behind a mutex, so use separate processes for parallel work[^1]

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.23 out of 1.
Signals: backing 0.20, extensibility 0.00.

- created by Alastair Carey (ajrcarey)

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [hayro](https://talira.ai/catalog/hayro-aqyrj3a8.md): A set of Rust crates for parsing, interpreting and rendering PDF files.
- [lopdf](https://talira.ai/catalog/lopdf-8dj842a3.md): A Rust library for PDF document manipulation.
- [pdf-rs](https://talira.ai/catalog/pdf-rs-p2j8k7qt.md): Rust library to read, manipulate and write PDF files.
- [PDF.js](https://talira.ai/catalog/pdf-js-ce376y3j.md): PDF Reader in JavaScript
- [pypdfium2](https://talira.ai/catalog/pypdfium2-2qb89jmf.md): Python bindings to PDFium, reasonably cross-platform
- [MuPDF](https://talira.ai/catalog/mupdf-a0hpyn67.md): The ultimate library for managing PDF documents

## Sources

[^1]: https://github.com/ajrcarey/pdfium-render/blob/master/README.md (checked 20 Nov 2026)
[^2]: https://crates.io/crates/pdfium-render (checked 20 Nov 2026)
[^3]: https://github.com/ajrcarey/pdfium-render/blob/master/LICENSE.md (checked 20 Nov 2026)
