Skip to content

renderHtmlToPdf

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

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

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.

string

ExportProfile

unknown

MdiWarichuSettleOptions

Promise<Buffer<ArrayBufferLike>>