Function layout_document

Source
pub fn layout_document(
    engine: &mut Engine<'_>,
    content: &Content,
    styles: StyleChain<'_>,
) -> SourceResult<PagedDocument>
Expand description

Layout content into a document.

This first performs root-level realization and then lays out the resulting elements. In contrast to layout_fragment, this does not take regions since the regions are defined by the page configuration in the content and style chain.