Expand description
PDF Renderer
Minimal PDF 1.4 parser and renderer. Parses the cross-reference table, trailer, and page tree to extract page content streams. Renders text (using the kernel’s 8x16 bitmap font) and filled rectangles to a pixel buffer.
All coordinate math is integer-only.
Structs§
- PdfDocument
- A parsed PDF document with pages.
- PdfPage
- A single PDF page with its content and media box.
- PdfParser
- PDF file parser.
- PdfRenderer
- Renders PDF content stream operations to a pixel buffer.
- Xref
Entry - A single xref entry.
Enums§
- Content
Stream Op - A parsed content stream operation.
- PdfObject
- Represents a PDF object value.
Functions§
- parse_
content_ stream - Parse a content stream into operations.