Skip to content
Lamina PDF
0.9.0
GitHub
Open the web app

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.

ContentsListing

ContentsFonts = {}

ContentsPage

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