Skip to content
Lamina PDF
0.9.0
GitHub
Open the web app

CommentSummaryOptions

Defined in: packages/sdk/src/summary.ts:16

What Document.commentSummary shows and how. Only font is needed; the rest have defaults.

0.6.0

readonly comments?: readonly string[];

Defined in: packages/sdk/src/summary.ts:31

The IDs of the comments to list, such as those a comments panel shows; every comment when left out.


readonly emptyPages?: boolean;

Defined in: packages/sdk/src/summary.ts:37

Whether pages without comments are listed too, each saying it has none (no by default).


readonly fallbacks?: readonly Font[];

Defined in: packages/sdk/src/summary.ts:23

Fonts for the characters font lacks, tried in order.


readonly font: Font;

Defined in: packages/sdk/src/summary.ts:21

The font its text is set in, embedded and subset. A standard 14 font is refused (font-not-embedded), since PDF/UA-1 needs embedded fonts.


readonly language?: string;

Defined in: packages/sdk/src/summary.ts:49

The summary’s language, a BCP 47 tag ("en" by default): give the language most comments are in, so screen readers read them in it. Give the summary’s own words in it too (words).


readonly layout?: "list" | "besidePage";

Defined in: packages/sdk/src/summary.ts:29

"besidePage" (the default): each page drawn small at the left, with its comments’ numbers marked on it and the comments beside it. "list": each page’s comments under its heading, without the page.


readonly paper?: readonly [number, number] | "document";

Defined in: packages/sdk/src/summary.ts:39

"document", the size of the first page (the default), or [width, height] in points.


readonly replies?: boolean;

Defined in: packages/sdk/src/summary.ts:33

Whether each comment’s replies are listed under it (yes by default).


readonly status?: boolean;

Defined in: packages/sdk/src/summary.ts:35

Whether each comment’s latest status and check mark are listed (yes by default).


readonly title?: string;

Defined in: packages/sdk/src/summary.ts:44

Its title: “Comments on” and the document’s title by default, or “Comment summary” when the document has no title.


readonly words?: CommentSummaryWords;

Defined in: packages/sdk/src/summary.ts:56

The words the summary writes itself, such as “Page”, in the summary’s language. Any you leave out stay in English.

0.6.0