Skip to main content

Module pdf_vector

Module pdf_vector 

Source
Expand description

Bounded graphics-state preparation for the pinned PDF.js adapter, producing the convertible path subset and a page-level fidelity report. This does not authorize geometry. The explicit annotation planner separately composes qualified fills and bounded solid straight stroke outlines.

Structs§

FidelityReport
Omission
OmissionSummary
PdfVectorGraphicsState
PdfVectorOperation
PdfVectorPage
PreparedPdfVectorPage
PreparedPdfVectorPath

Enums§

PdfDashClosure
PdfVectorOperator
One pinned-decoder operation. Geometry kinds carry construction-space numbers; semantic kinds carry exactly what the fidelity report needs to scope, place and classify content the planner cannot convert.
PdfVectorPaint

Constants§

FIDELITY_ALGORITHM
MAX_LISTED_OMISSIONS
Detailed entries are bounded; summary counts stay complete.

Functions§

prepare_pdf_vector_page
Input identity is host-verified: native code receives decoded operations, not raw PDF bytes. Invalid structure/budget refuses atomically. Content the planner cannot convert is never dropped silently: it is reported with page extent and visibility, and fidelity.exact is false whenever any of it is visible.
prepare_pdf_vector_page_with_clip
Prepare a PDF page within an optional registered rectangle in native PDF space. The separate argument keeps PdfVectorPage source-compatible for Rust callers while the WASM wire format accepts conversionClipPdf.