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.
Parameters
Section titled “Parameters”string
profile?
Section titled “profile?”ExportProfile
sourceWritingMode?
Section titled “sourceWritingMode?”unknown
options?
Section titled “options?”Returns
Section titled “Returns”Promise<Buffer<ArrayBufferLike>>
MIT License© 2026 Iktahana