new PDFAnnotDelegator()
Methods
-
matchPattern(pattern)
-
Parameters:
Name Type Description patternWebPDF.Annot.Pattern Returns:
- Type
- boolean
-
previewBorderColorEffect(borderColor)
-
Parameters:
Name Type Description borderColorstring -
previewBorderWidthEffect(borderWidth)
-
Parameters:
Name Type Description borderWidthnumber -
previewColorEffect(color)
-
Parameters:
Name Type Description colorstring the color of this annotation in hex format, it looks like: #FFFFFF
-
previewFillColorEffect(fillColor)
-
Parameters:
Name Type Description fillColorstring -
previewFontSizeEffect(fontSize)
-
Parameters:
Name Type Description fontSizenumber -
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 opacitynumber 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 rotationAnglenumber 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 borderColorstring -
setBorderWidth(borderWidth)
-
Parameters:
Name Type Description borderWidthnumber -
setColor(color)
-
Parameters:
Name Type Description colorstring the color of this annotation in hex format, it looks like: #FFFFFF
-
setFillColor(fillColor)
-
Parameters:
Name Type Description fillColorstring -
setFontSize(fontSize)
-
Parameters:
Name Type Description fontSizenumber -
setModifyDate(date)
-
update last modified time
Parameters:
Name Type Description datenumber | Date -
setOpacity(opacity)
-
update opacity of this annotation and then record to undo/redo stack.
Parameters:
Name Type Description opacitynumber 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 rotationAnglenumber 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