Expand description
Unified document facade — multi-page rendering, text extraction, metadata, bookmarks, and thumbnails.
Structs§
- Bookmark
Item - A bookmark / outline item.
- Document
Info - Document metadata extracted from the info dictionary.
- Page
Link - One
/Linkannotation on a page: the region it covers and where it goes. - PdfDocument
- High-level PDF document handle.
- Vision
Advice - Why a page may be worth sending to a vision model (#624).
Enums§
- Link
Target - Where a page link points.
Functions§
- gray_
page - Render a page to Gray8 bytes at the given dpi:
(width, height, data), row-major, top-left origin, 0 is black. - join_
page_ texts - Join per-page text the way
pdftotextandmutoolhave for twenty years: a form feed (U+000C) after every page, preceded by a blank line so the last paragraph of a page is not glued to the separator.