⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module pdf

Module pdf 

Source
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.
XrefEntry
A single xref entry.

Enums§

ContentStreamOp
A parsed content stream operation.
PdfObject
Represents a PDF object value.

Functions§

parse_content_stream
Parse a content stream into operations.