[]
DsPdfJS API / PenProperties
PenProperties =
object
Provides settings for creating a new Pen.
optionalbasePen:Pen|null
A reference to the pen used as the base for the new pen.
optionalcolor:Color
The pen color. The default is Black. Overrides the value from base pen if PenProperties.basePen is specified.
optionaldashOffset:number
The distance within the dash pattern where a dash begins. The default value is 0. Overrides the value from base pen if PenProperties.basePen is specified.
optionaldashPattern:number[] |null
The custom dash pattern of lines drawn with this pen. Overrides the value from base pen if PenProperties.basePen is specified.
optionaldashStyle:DashStyle
The style of dashed lines drawn with this pen. Overrides the value from base pen if PenProperties.basePen is specified.
optionallineCap:PenLineCap
The line cap style specifies the shape to be used at the ends of open subpaths (and dashes, if any) when they are stroked. Overrides the value from base pen if PenProperties.basePen is specified.
optionallineJoin:PenLineJoin
The line join style specifies the shape to be used at the corners of paths that are stroked. Overrides the value from base pen if PenProperties.basePen is specified.
optionalmiterLimit:number
A maximum on the ratio of the miter length to the pen width. When the limit is exceeded, the join is converted from a miter to a bevel. Overrides the value from base pen if PenProperties.basePen is specified.
optionalwidth:number
The pen width, in units used for drawing. The default is 1. Overrides the value from base pen if PenProperties.basePen is specified.