Copy

CompatPageBreakOptions

Page-break settings accepted by the html2pdf.js compatibility layer.

ON_THIS_PAGE
  1. Signature
  2. Properties

Page-break settings accepted by the html2pdf.js compatibility layer.

Signature

export interface CompatPageBreakOptions {
    mode?: "css" | "legacy" | "avoid-all" | readonly ("css" | "legacy" | "avoid-all")[];
    before?: string | readonly string[];
    after?: string | readonly string[];
    avoid?: string | readonly string[];
}
SOURCE:277

Properties

PropertyTypeRequiredRead onlyDefaultDescription
mode"css" | "legacy" | "avoid-all" | readonly ("css" | "legacy" | "avoid-all")[]NoNocss and legacyCompatibility modes. Defaults to css and legacy.
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.
ON_THIS_PAGE
  1. Signature
  2. Properties
html2realpdf documentationCopyright © Imggion
DOCUMENTATION_TREE