2 unstable releases

0.2.0 Dec 27, 2024
0.1.0 Dec 23, 2024

#729 in Rust patterns

Download history 236/week @ 2024-12-22 13/week @ 2024-12-29

249 downloads per month

MIT license

220KB
3K SLoC

Livre

Livre, pronounced [livʁ] (the french word for book) aims to be a type-safe utility for parsing PDF documents.

Please note that this is a very early release, primarily meant as a motivational tool for me to work towards an actually working release in the near future.

This first version already provides a sufficient set of low-level utilities to extract all PDF primitive types in a type-safe manner.

Obtaining the PDF specification

Thankfully, the ISO standards defining the PDF specification can be downloaded free of charge. Visit the PDF Association's website to get your version.

Tentative roadmap

  • (v0.1.0) Low-level extraction utilities for primitive PDF types
  • (v0.2.0) Parser for cross-reference dictionary
  • (v0.3.0) Eager, owned instance of the Builder trait
  • (v0.4.0) Parser for the general PDF structure, allowing to iterate over pages and their content
  • (v0.5.0) Parser for fonts definition - starting with "simple fonts"
  • (v0.6.0) Parser for pages' text content

Dependencies

~1.3–1.8MB
~36K SLoC