Skip to main content
Version: API v2 Preview

PathObject

Kind: class
Module/package: types
SDK: pdfdancer-client-typescript 2.0.0

Declaration

class PathObject extends BaseObject

Members

constructor

constructor(client: PDFDancer, internalId: string, type: ObjectType, position: Position): PathObject

clearClipping

clearClipping(): Promise<boolean>

delete

delete(): Promise<boolean>

edit

edit(): PathEditSession

Starts an edit session to modify this path's colors.

fromRef

fromRef(_client: PDFDancer, objectRef: ObjectRef): PathObject

moveTo

moveTo(x: number, y: number): Promise<boolean>

objectRef

objectRef(): ObjectRef

_client

_client: PDFDancer

dashArray

dashArray: number[]

Returns the dash array of this path, or undefined if not set.

dashPhase

dashPhase: number

Returns the dash phase of this path, or undefined if not set.

fillColor

fillColor: Color

Returns the fill color of this path, or undefined if not set.

internalId

internalId: string

position

position: Position

strokeColor

strokeColor: Color

Returns the stroke color of this path, or undefined if not set.

strokeWidth

strokeWidth: number

Returns the stroke width of this path, or undefined if not set.

type

type: ObjectType

View source at 7bd49ac104cc