talira

Compare

pdfium-renderhayrolopdfpdf-rs
What it isA high-level idiomatic Rust wrapper around Pdfium, the C++ PDF library used by the Google Chromium project.A set of Rust crates for parsing, interpreting and rendering PDF files.A Rust library for PDF document manipulation.Rust library to read, manipulate and write PDF files.
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.230.620.230.15
Stars—868——
Last commit—2026-11-14——
LicenceMIT OR Apache-2.0Apache-2.0 OR MITMITMIT
PricingFree and open sourceFree and open sourceFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostableYesYesYesYes
Ways to run it————
SOC 2————
HIPAA————
SSO————
API————
Plugins————
MCP server————
Company————
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
  • All 11 features
  • read-only PDF parsing (hayro-syntax)
  • content stream interpreter with an abstract device (hayro-interpret)
  • CPU rasterization to bitmaps (hayro)
  • PDF to SVG (hayro-svg)
  • standalone JPEG 2000, JBIG2 and CCITT decoders
  • font and CMap parsers
  • embedded standard fonts and CMaps (default features)
  • 1,600+ PDF visual regression suite
  • All 10 features
  • load, edit and save PDF documents as an object model
  • create PDFs from scratch with a dictionary! macro and content operations
  • object streams and cross-reference streams (PDF 1.5+), reading and writing
  • decryption (automatic for empty passwords) and encryption
  • text extraction from pages
  • delete pages, prune and renumber objects, compress and decompress streams
  • bookmarks, outlines, destinations and table of contents
  • incremental updates through IncrementalDocument
  • All 10 features
  • typed views of PDF objects: catalog, pages, fonts, XObjects, colour spaces, annotations, forms, structure tree
  • content streams decoded into an Op enum
  • lazy object resolution and stream decoding, with optional caching and memory mapping
  • stream filters and predictors
  • RC4 and AES decryption with the standard security handler
  • strict and tolerant parsing modes, with an object size limit against decompression bombs
  • cross-reference tables and streams, object streams and incremental updates
  • building a document from scratch and importing objects into it
  • All 9 features
Limitations
  • Doesn't include or build Pdfium: you supply a prebuilt Pdfium library to bind at runtime or link statically
  • Doesn't speed anything up with threads: every call into Pdfium is serialized behind a mutex, so use separate processes for parallel work
    • Doesn't stream large PDFs: it keeps the whole document in memory as objects until it saves the file
    • May not decrypt every encrypted PDF: some encryption algorithms aren't fully supported, and only empty passwords open automatically
    • Doesn't render PDF pages to images: rendering is in the separate pdf_render crate
    • Doesn't extract text: text extraction is in the separate pdf_text and pdf_render crates
    • Doesn't repair broken PDFs: it can parse damaged files tolerantly but has no repair
    • Can't rewrite an arbitrary existing PDF yet: writing is experimental, and only building from scratch and incremental updates work