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

    Interface WidgetPlacement

    One on-page placement of a form field — a single widget annotation. See FieldInfo.widgets.

    interface WidgetPlacement {
        page?: number;
        bounds?: [number, number, number, number];
        export?: string;
    }
    Index

    Properties

    Properties

    page?: number

    1-based page the widget sits on (from its /P).

    bounds?: [number, number, number, number]

    Widget rectangle [x, y, width, height] in points, top-left origin (already Y-flipped from the PDF's bottom-left /Rect).

    export?: string

    For a button widget, its on-state export name (the non-Off /AP /N key) — which radio button this widget is / the value stored when selected. Absent for text and choice widgets.