[]
DsPdfJS API / Pen
Represents a pen used to draw lines and contours.
new Pen(
penProperties):Pen
Creates a new Pen based on properties of an existing Pen.
The settings overriding properties of the base Pen.
Pen
ObjectBase.constructor
new Pen(
basePen,penProperties):Pen
Creates a new Pen based on properties of an existing Pen.
Pen
The Pen used as the base for the new Pen.
The settings overriding properties of the base Pen.
Pen
ObjectBase.constructor
new Pen(
om,penProperties):Pen
Creates a new Pen object with specified properties.
An object manager that controls the lifetime of the Pen object.
The settings for creating a Pen.
Pen
ObjectBase.constructor
get color():
Color
Gets the pen color.
get dashOffset():
number
Gets the distance within the dash pattern where a dash begins.
number
get dashPattern():
number[] |null
Gets the custom dash pattern of lines drawn with this pen.
number[] | null
get dashStyle():
DashStyle
Gets the style of dashed lines drawn with this pen.
get id():
number
Gets the reference to the object.
number
get lineCap():
PenLineCap
Gets the line cap style that specifies the shape used at the ends of open subpaths (and dashes, if any) when they are stroked.
get lineJoin():
PenLineJoin
Gets the line join style that specifies the shape used at the corners of paths that are stroked.
get miterLimit():
number
Gets 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.
number
get om():
ObjectManager
Gets the owner ObjectManager instance.
get width():
number
Gets the pen width, in units used for drawing.
number
free():
void
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
rebind(
omTo):void
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void