[]
Represents the default appearance of an annotation.
get font(): Font;
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.
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.
void
get fontSize(): number;
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
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
void
get foreColor(): Color;
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:
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:
void
get id(): number;
Gets the reference to the object.
number
get om(): ObjectManager;
Gets the owner ObjectManager instance.
get text(): string;
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
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
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