@qrcommunication/gigapdf-lib — SDK API reference - v0.110.3
    Preparing search index...

    Interface PageBoxes

    A page's five boundary boxes (see GigaPdfDoc.getPageBoxes). Each box is the effective rectangle [x0, y0, x1, y1] in user-space points, with ISO 32000-1 inheritance and the per-box default chain already applied — so crop equals media when no /CropBox is declared, and bleed/trim/art each fall back to crop. Values are reported verbatim (not clamped to their intersection with the media box), so the source file round-trips faithfully.

    interface PageBoxes {
        media: [number, number, number, number];
        crop: [number, number, number, number];
        bleed: [number, number, number, number];
        trim: [number, number, number, number];
        art: [number, number, number, number];
        declared: Record<PageBoxKind, boolean>;
    }
    Index

    Properties

    media: [number, number, number, number]

    /MediaBox (inherited if absent; defaults to US Letter [0, 0, 612, 792]).

    crop: [number, number, number, number]

    /CropBox (inherited if absent; defaults to the media box).

    bleed: [number, number, number, number]

    /BleedBox (defaults to the crop box).

    trim: [number, number, number, number]

    /TrimBox (defaults to the crop box).

    art: [number, number, number, number]

    /ArtBox (defaults to the crop box).

    declared: Record<PageBoxKind, boolean>

    Which boxes are explicitly declared on the page dictionary (vs inherited from an ancestor /Pages node or defaulted by the rules above) — lets a host tell a real /TrimBox from one defaulted to the crop box.