Skip to content

renderHtmlToPdf

renderHtmlToPdf(html, profile?, sourceWritingMode?, options?): Promise<Buffer<ArrayBufferLike>>

Defined in: to-pdf/src/index.ts:36

Print a complete, already-rendered MDI HTML document through Chromium.

This is deliberately a layout adapter: callers must obtain the HTML from the Rust core and must not supply an alternative MDI parser or renderer. The document navigation is the only request Chromium may make. Any other network or file request fails the export, and the browser process is closed on success, failure, and timeout.

string

ExportProfile

unknown

RenderHtmlToPdfOptions

Promise<Buffer<ArrayBufferLike>>

MIT License© 2026 Iktahana