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

    Interface AnnotationInfo

    A markup annotation (rect corners in PDF user space, origin bottom-left). Carries the common metadata plus the type-specific geometry a host editor needs: text-markup quadPoints, freehand inkList, stamp name, and the link target (linkUri / linkPage).

    interface AnnotationInfo {
        index: number;
        subtype: string;
        x0: number;
        y0: number;
        x1: number;
        y1: number;
        contents: string;
        author: string;
        subject: string;
        created: string;
        modified: string;
        name: string;
        opacity: number;
        color: number[];
        quadPoints: number[];
        inkList: number[][];
        linkUri: string;
        linkPage: number;
    }
    Index

    Properties

    index: number
    subtype: string
    x0: number
    y0: number
    x1: number
    y1: number
    contents: string
    author: string

    /T — author / title. Empty when absent.

    subject: string

    /Subj — subject. Empty when absent.

    created: string

    /CreationDate — raw PDF date (D:YYYYMMDD…). Empty when absent.

    modified: string

    /M — raw PDF modification date. Empty when absent.

    name: string

    /Name — stamp name (e.g. "Approved"). Empty when absent.

    opacity: number

    /CA non-stroking opacity, 0..=1 (1 = opaque).

    color: number[]

    /C normalised to RGB 0..=1 ([] when no colour).

    quadPoints: number[]

    /QuadPoints (8 values per quad) for text-markup annotations.

    inkList: number[][]

    /InkList — one inner array per freehand stroke (x y x y …).

    linkUri: string

    Link external URI (/A /URI). Empty when internal/absent.

    linkPage: number

    Link internal destination page (1-based); 0 when external/absent.