Georeferencing API
    Preparing search index...

    Lazy report configuration; importing this type does not load pdf-lib.

    interface PdfOptions {
        attribution?: string;
        capture?: () => MapCapture | Promise<MapCapture | undefined> | undefined;
        definitions?: Definitions;
        landscape?: boolean;
        margin?: number;
        paper?: "A4" | "A3" | "Letter";
    }

    Hierarchy

    Index
    attribution?: string

    Attribution override for the captured map; defaults to map.attribution.

    capture?: () => MapCapture | Promise<MapCapture | undefined> | undefined

    Capture the host map when the export starts, for the report's map page; return undefined to skip it. Use a map binding's capture() or an adapter's capture function, such as captureOpenLayersMap or captureMapLibreMap. Omit for raster-only reports.

    definitions?: Definitions

    Host projection definitions for report coordinate conversion and unit labels.

    landscape?: boolean

    Swap paper width and height.

    false

    margin?: number

    Page margin in PDF points (1/72 inch); at least 15 and must leave 200 points of usable width/height.

    40

    paper?: "A4" | "A3" | "Letter"

    PDF paper size.

    "A4"