Class: PDFAnnotDelegator

PDFAnnotDelegator


new PDFAnnotDelegator()

Methods


previewBorderColorEffect(borderColor)

Parameters:
Name Type Description
borderColor string

previewBorderWidthEffect(borderWidth)

Parameters:
Name Type Description
borderWidth number

previewColorEffect(color)

Parameters:
Name Type Description
color string

the color of this annotation in hex format, it looks like: #FFFFFF


previewFillColorEffect(fillColor)

Parameters:
Name Type Description
fillColor string

previewFontSizeEffect(fontSize)

Parameters:
Name Type Description
fontSize number

previewOpacityEffect(opacity)

update opacity of this annotation, this operation is just for preview the effect, the opacity value will not be changed and also not be recorded to undo/redo stack.

Parameters:
Name Type Description
opacity number

the value of opacity is in the range of 0 to 1

Returns:
Type
void

previewRotateEffect(rotationAngle)

update rotate angle of this annotation, this operation is just for preview the effect, the rotation angle value will not be changed and also not be recorded to undo/redo stack.

Parameters:
Name Type Description
rotationAngle number

the value of rotation angle is in the range of 0 to 360, the value out of range will be corrected to normal

Returns:
Type
void

setBorderColor(borderColor)

Parameters:
Name Type Description
borderColor string

setBorderWidth(borderWidth)

Parameters:
Name Type Description
borderWidth number

setColor(color)

Parameters:
Name Type Description
color string

the color of this annotation in hex format, it looks like: #FFFFFF


setFillColor(fillColor)

Parameters:
Name Type Description
fillColor string

setFontSize(fontSize)

Parameters:
Name Type Description
fontSize number

setModifyDate(date)

update last modified time

Parameters:
Name Type Description
date number | Date

setOpacity(opacity)

update opacity of this annotation and then record to undo/redo stack.

Parameters:
Name Type Description
opacity number

the value of opacity is in the range of 0 to 1

Returns:
Type
void

setRotate(rotationAngle)

update rotation angle of this annotation and then record to undo/redo stack.

Parameters:
Name Type Description
rotationAngle number

the value of rotation angle is in the range of 0 to 360, the value out of range will be corrected to normal

Returns:
Type
void