• Font size
  • Line height
  • Font
  • PagesEntry

    [email protected]

    Signature

    export type PagesEntry = Partial<PageOptions> | string | boolean | null | undefined | void

    Defines the options for generating a single PDF file in a PagesMap or PagesFunction.

    Description

    This is a type alias to allow more flexibility when defining page options.

    PagesEntry can be an object to specify PageOptions. Any missing options will inherit from the baseOptions if given, otherwise the default options of PageOptions will be used.

    If a PagesEntry is a string, it will be used as the path option.

    If it is true, then the page will be generated completely using the base or default options.

    If it is falsy (i.e. null, undefined, or false), then it will be ignored and no PDF file will be generated.