Skip to content

renderDocument()

function renderDocument(
doc,
container,
options?
): HTMLElement[];

Renders every page into container, replacing its contents. Returns the page elements.

Parameter Type
doc LayoutDocument
container HTMLElement
options RenderOptions

HTMLElement[]