---
title: "CommentSummaryOptions"
version: "0.9.0"
url: "https://docs.laminapdf.com/reference/sdk/interfaces/commentsummaryoptions/"
---

# CommentSummaryOptions

Defined in: [packages/sdk/src/summary.ts:16](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/summary.ts#L16)

What [Document.commentSummary](/reference/sdk/classes/document.md#commentsummary) shows and how. Only `font` is needed; the rest have
defaults.

## Since

0.6.0

## Properties

### comments?

```ts
readonly comments?: readonly string[];
```

Defined in: [packages/sdk/src/summary.ts:31](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/summary.ts#L31)

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

***

### emptyPages?

```ts
readonly emptyPages?: boolean;
```

Defined in: [packages/sdk/src/summary.ts:37](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/summary.ts#L37)

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

***

### fallbacks?

```ts
readonly fallbacks?: readonly Font[];
```

Defined in: [packages/sdk/src/summary.ts:23](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/summary.ts#L23)

Fonts for the characters `font` lacks, tried in order.

***

### font

```ts
readonly font: Font;
```

Defined in: [packages/sdk/src/summary.ts:21](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/summary.ts#L21)

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.

***

### language?

```ts
readonly language?: string;
```

Defined in: [packages/sdk/src/summary.ts:49](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/summary.ts#L49)

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`).

***

### layout?

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

Defined in: [packages/sdk/src/summary.ts:29](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/summary.ts#L29)

`"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.

***

### paper?

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

Defined in: [packages/sdk/src/summary.ts:39](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/summary.ts#L39)

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

***

### replies?

```ts
readonly replies?: boolean;
```

Defined in: [packages/sdk/src/summary.ts:33](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/summary.ts#L33)

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

***

### status?

```ts
readonly status?: boolean;
```

Defined in: [packages/sdk/src/summary.ts:35](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/summary.ts#L35)

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

***

### title?

```ts
readonly title?: string;
```

Defined in: [packages/sdk/src/summary.ts:44](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/summary.ts#L44)

Its title: "Comments on" and the document's title by default, or "Comment summary" when the
document has no title.

***

### words?

```ts
readonly words?: CommentSummaryWords;
```

Defined in: [packages/sdk/src/summary.ts:56](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/summary.ts#L56)

The words the summary writes itself, such as "Page", in the summary's `language`. Any you
leave out stay in English.

#### Since

0.6.0
