ComPDFKit Web SDK
    Preparing search index...

    Class Border

    Border of an annotation: color, width, style and dash pattern.

    Index
    • Creates a border.

      Parameters

      • Optionalinit: Partial<Pick<Border, "color" | "width" | "style" | "dashes">>

        Initial color, width, style and dashes.

      Returns Border

    color: Color

    Border color; black by default.

    dashes: number[]

    Dash pattern in PDF points (used with the 'dash' style).

    style: BorderStyle

    Border style; 'solid' by default.

    width: number

    Border width in PDF points; 1 by default.