pdf library

PDF parsing entry points.

Classes

ArchiveEntry
A physical entry of a book's container archive.
BinaryFile
Represents a binary book file.
Book
A fully parsed book, independent of its source format.
BookCover
A book cover: raw bytes plus the detected image type.
BookFile
Abstract representation of a file inside a book container.
BookMetadata
Format-agnostic book metadata extracted from any supported book file.
BookStatistics
Basic reading statistics computed from book content.
DocumentBook
A document-backed book produced by text and office-format adapters.
Files
The files contained in a parsed book.
The navigation (table of contents) of a book.
Represents a navigation point (table of contents entry) in a book.
PdfBook
A parsed PDF document.
PdfImageBox
An image placement on the page.
PdfPage
One PDF page: geometry, rotation and the raw resources dictionary.
PdfPageText
The extracted content of one PDF page: canonical text lines and image placements, in the page's top-left pixel space (points).
PdfTextLine
One line of text: the canonical unit the extractor emits.
ReadingOrderItem
One entry of a book's reading order.
TextFile
Represents a text book file.

Enums

BookFormat
The book formats supported by unseal.
PdfTextQuality
What the parser can establish about a page's extracted text.

Functions

parsePdfBook(Uint8List bytes, {String password = ''}) → PdfBook
Parses a PDF document from raw bytes.
readPdfMetadata(Uint8List bytes, {String password = ''}) → BookMetadata
Reads only the metadata of a PDF document from bytes, opening encrypted documents with password.

Exceptions / Errors

PdfEncryptedException
Thrown when a PDF document is encrypted and the supplied (or empty) password does not open it.
PdfException
Thrown when a PDF document cannot be parsed.