[]
Represents the appearance of a WidgetAnnotation when it is linked with a push button or a signature field.
get caption(): string;
Gets or sets the button's caption.
string
set caption(value): void;
Gets or sets the button's caption.
string
void
get captionImageRelation(): CaptionImageRelation;
Gets or sets a value indicating how to position the button's caption relative to image.
set captionImageRelation(value): void;
Gets or sets a value indicating how to position the button's caption relative to image.
void
get downCaption(): string;
Gets or sets the button's caption used when the mouse button is pressed within its active area.
string
set downCaption(value): void;
Gets or sets the button's caption used when the mouse button is pressed within its active area.
string
void
get id(): number;
Gets the reference to the object.
number
get image(): PdfImageHandler;
Gets the button's image as PdfImageHandler object.
You can use PdfImageHandler#image property to get actual image.
set image(value): void;
Sets the button's image.
You can use PdfImageHandler to assign an image to this property, for example:
const img = await Image.load(IMAGE_BYTES);
btn.buttonAppearance.image = doc.imageHandlers.GetImageHandler(img);
void
get imageScale(): ImageScaleProperties;
Gets or sets the ImageScaleProperties object defining attributes of image scaling.
set imageScale(value): void;
Gets or sets the ImageScaleProperties object defining attributes of image scaling.
void
get om(): ObjectManager;
Gets the owner ObjectManager instance.
get rolloverCaption(): string;
Gets the button's caption used when the user rolls the cursor into its active area without pressing the mouse button.
string
set rolloverCaption(value): void;
Sets the button's caption used when the user rolls the cursor into its active area without pressing the mouse button.
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