Selector-driven pagination overrides compatible with html2pdf.js workflows.
Signature
export interface PageBreakRules {
before?: string | readonly string[];
after?: string | readonly string[];
avoid?: string | readonly string[];
avoidAll?: boolean;
legacy?: boolean;
}Properties
| Property | Type | Required | Read only | Default | Description |
|---|---|---|---|---|---|
before | string | readonly string[] | No | No | None | Selectors forced to begin on a new page. |
after | string | readonly string[] | No | No | None | Selectors forced to end the current page. |
avoid | string | readonly string[] | No | No | None | Selectors whose contents should avoid internal fragmentation. |
avoidAll | boolean | No | No | None | Applies break-inside: avoid to every element. |
legacy | boolean | No | No | None | Honors the legacy .html2pdf__page-break marker. |