Copy

PageBreakRules

Selector-driven pagination overrides compatible with html2pdf.js workflows.

ON_THIS_PAGE
  1. Signature
  2. Properties

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;
}
SOURCE:165

Properties

PropertyTypeRequiredRead onlyDefaultDescription
beforestring | readonly string[]NoNoNoneSelectors forced to begin on a new page.
afterstring | readonly string[]NoNoNoneSelectors forced to end the current page.
avoidstring | readonly string[]NoNoNoneSelectors whose contents should avoid internal fragmentation.
avoidAllbooleanNoNoNoneApplies break-inside: avoid to every element.
legacybooleanNoNoNoneHonors the legacy .html2pdf__page-break marker.
ON_THIS_PAGE
  1. Signature
  2. Properties
html2realpdf documentationCopyright © Imggion
DOCUMENTATION_TREE