layOutContentsPage
function layOutContentsPage(listing, fonts?): ContentsPage;Defined in: packages/sdk/src/contents.ts:109
Lays out the contents page of listing as a document of its own, in fonts: the heading, then
each entry indented by its level with dot leaders to its label. Needs the text module loaded
(init({ text: true })); the document the listing came from can be open in any module.
Parameters
Section titled “Parameters”listing
Section titled “listing”fonts?
Section titled “fonts?”ContentsFonts = {}
Returns
Section titled “Returns”Throws
Section titled “Throws”LaminaPdfError text-module-not-loaded; font-not-embedded for the default
font on a file that claims PDF/A or PDF/UA-1; missing-glyph for a title no font can draw.
0.5.0