[]
DsPdfJS API / DefaultAppearance
Represents the default appearance of an annotation.
get font():
Font|null
Gets or sets the Font object.
In a newly created document the value of this property is null. If the value has not been set when the document is saved (and for fields, the owner field has been added to PdfDocument), a default value is automatically assigned depending on the type of the current object's owner:
When setting this property, you may use FontCollection#searchFont or other FontCollection methods to find a suitable font.
Font | null
set font(
value):void
Gets or sets the Font object.
In a newly created document the value of this property is null. If the value has not been set when the document is saved (and for fields, the owner field has been added to PdfDocument), a default value is automatically assigned depending on the type of the current object's owner:
When setting this property, you may use FontCollection#searchFont or other FontCollection methods to find a suitable font.
Font | null
void
get fontSize():
number|null
Gets or sets the font size in points.
In a newly created document the value of this property is null. If the value has not been set when the document is saved (and for fields, the owner field has been added to PdfDocument), a default value is automatically assigned depending on the type of the current object's owner:
number | null
set fontSize(
value):void
Gets or sets the font size in points.
In a newly created document the value of this property is null. If the value has not been set when the document is saved (and for fields, the owner field has been added to PdfDocument), a default value is automatically assigned depending on the type of the current object's owner:
number | null
void
get foreColor():
Color|null
Gets or sets the foreground color.
In a newly created document the value of this property is null. If the value has not been set when the document is saved (and for fields, the owner field has been added to PdfDocument), a default value is automatically assigned depending on the type of the current object's owner:
Color | null
set foreColor(
value):void
Gets or sets the foreground color.
In a newly created document the value of this property is null. If the value has not been set when the document is saved (and for fields, the owner field has been added to PdfDocument), a default value is automatically assigned depending on the type of the current object's owner:
Color | null
void
get id():
number
Gets the reference to the object.
number
get om():
ObjectManager
Gets the owner ObjectManager instance.
get text():
string|null
Gets or sets the text representing the appearance as it will be stored in a PDF stream (e.g. "/DF0 10 Tf 0 0 0 rg").
Please see the PDF specification for details.
string | null
set text(
value):void
Gets or sets the text representing the appearance as it will be stored in a PDF stream (e.g. "/DF0 10 Tf 0 0 0 rg").
Please see the PDF specification for details.
string | null
void
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