Class: Border

Core.Annotations. Border

Represents a class that contains border information for an annotation

new Border( [params])

Creates a new instance of Border.
Parameters:
Name Type Argument Description
params Core.Annotations.Border | Core.Annotations.BorderParameters | Array.<number> <optional>
The initialization options. Can be a Border object to copy, an object with border properties ({ color, width, style, cornerRadius }), or a PDF border array [hRadius, vRadius, width] or [hRadius, vRadius, width, dashArray]
Properties:
Name Type Description
color Core.Annotations.Color The color of the border
width number The width of the border
style 'solid' | 'bevelled' | 'inset' | 'dashed' | 'underline' The style of the border
cornerRadius number | Array.<number> The corner radius. Can be a single number (applied to both horizontal and vertical) or an array [horizontal, vertical]. The getter always returns an array [horizontal, vertical]