pdfrx_web
    Preparing search index...

    Interface AnnotationStyle

    Style applied to newly drawn annotations.

    interface AnnotationStyle {
        color: string;
        fillColor: string | null;
        fontSize: number;
        opacity: number;
        strokeWidth: number;
        textAlign: "left" | "center" | "right";
        textColor: string;
        textVerticalAlign: "top" | "middle" | "bottom";
    }
    Index
    color: string

    Stroke (outline) CSS color string (e.g. #e53935).

    fillColor: string | null

    Interior (fill) CSS color for closed shapes (rectangle/ellipse), or null for no fill.

    fontSize: number

    Text size in PDF points for rectangle/text-box contents.

    opacity: number

    Stroke opacity 0-1 (baked into the stroke color's alpha).

    strokeWidth: number

    Stroke width in PDF points.

    textAlign: "left" | "center" | "right"

    Horizontal placement of text within rectangle/text-box annotations.

    textColor: string

    Text CSS color for rectangle/text-box contents.

    textVerticalAlign: "top" | "middle" | "bottom"

    Vertical placement of text within rectangle/text-box annotations.