• Font size
  • Line height
  • Font
  • ServerOutput

    [email protected]

    Signature

    export interface ServerOutput

    The return type of the server option.

    Members

    url

    Signature:
    url?: URL

    The URL of the server.

    Only the origin of the server (e.g. http://localhost:4321) will be used.

    If the URL is undefined, astro-pdf will not attempt to load local pages.

    close

    Signature:
    close?: () => unknown

    Function to close the server.

    This will be called after astro-pdf has finished loading and processing all pages.

    If the function returns a promise, it will be awaited. Otherwise the return value is ignored.