ComPDF React Native - v3.0.0
    Preparing search index...

    Interface CPDFSquareAttr

    Attribute configuration for square annotations.

    Controls fill color, border style, and transparency.

    interface CPDFSquareAttr {
        type: "square";
        fillColor?: `#${string}`;
        borderColor?: `#${string}`;
        colorAlpha?: ColorAlpha;
        borderWidth?: BorderWidth;
        borderStyle?: CPDFBorderStyleAttr;
    }
    Index

    Properties

    type: "square"

    Read-only discriminator for runtime type checks.

    fillColor?: `#${string}`

    Fill color in HEX format (e.g. #1460F3).

    borderColor?: `#${string}`

    Border color in HEX format (e.g. #1460F3).

    colorAlpha?: ColorAlpha

    Opacity applied to both fill and border colors. Valid range: 0–255.

    borderWidth?: BorderWidth

    Border thickness. Valid range: 1–10.

    borderStyle?: CPDFBorderStyleAttr

    Border style configuration (solid or dashed).