Interface: RenderOptions
Defined in: packages/vellora/src/types.ts:83
Public render options. opts is the single carrier for render configuration and is forwarded to the orchestration and native layers. metadata, images, baseUrl, and fonts all have a rendering effect.
Properties
baseUrl?
optionalbaseUrl?:string
Defined in: packages/vellora/src/types.ts:113
Base URL used only to normalize a relative <img> src into the images lookup key. Never fetched.
chromium?
optionalchromium?:ChromiumEngineOptions
Defined in: packages/vellora/src/types.ts:89
Browser-engine options forwarded only when the selected engine is "chromium".
engine?
optionalengine?:RenderEngine
Defined in: packages/vellora/src/types.ts:85
Rendering backend. Omitted => "native"; "chromium" requires the optional Chromium engine.
fidelity?
optionalfidelity?:FidelityOptions
Defined in: packages/vellora/src/types.ts:87
Template-level routing metadata used by engine: "auto".
fonts?
optionalfonts?:Uint8Array<ArrayBufferLike>[]
Defined in: packages/vellora/src/types.ts:105
Custom font faces as raw TTF/OTF bytes. Each face registers into the deterministic font context (after the bundled faces) and is reachable from the document's CSS by its intrinsic embedded family name (font-family: "Inter") — the caller does not declare a family alias. Custom faces never override the CSS generics (sans-serif/serif/monospace stay bundled), and no host/system font is ever consulted, so an unreferenced face leaves output byte-identical. A non-Uint8Array entry rejects with VelloraInputError; bytes that are not a parseable font reject with font:invalid.
images?
optionalimages?:Record<string,Uint8Array<ArrayBufferLike>>
Defined in: packages/vellora/src/types.ts:111
Image bytes keyed by an <img>'s src string. A non-data: <img src> is resolved by looking up this map (its key optionally normalized against baseUrl); the format is detected from the bytes. A renderable <img> whose source does not resolve rejects with image:unresolved.
metadata?
optionalmetadata?:RenderMetadata
Defined in: packages/vellora/src/types.ts:95
Document metadata (title, creation date).
pdfa?
optionalpdfa?:"PDF/A-2b"
Defined in: packages/vellora/src/types.ts:93
Emit an archival PDF using the named PDF/A profile. Currently only PDF/A-2b is supported.
strict?
optionalstrict?:boolean
Defined in: packages/vellora/src/types.ts:91
Strict-by-default: validate, never mutate. false runs @vellora/lint fixers first.