[]
DsPdfJS API / ButtonAppearance
Represents the appearance of a WidgetAnnotation when it is linked with a push button or a signature field.
get caption():
string|null
Gets or sets the button's caption.
string | null
set caption(
value):void
Gets or sets the button's caption.
string | null
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|null
Gets or sets the button's caption used when the mouse button is pressed within its active area.
string | null
set downCaption(
value):void
Gets or sets the button's caption used when the mouse button is pressed within its active area.
string | null
void
get id():
number
Gets the reference to the object.
number
get image():
PdfImageHandler|null
Gets the button's image as PdfImageHandler object.
You can use PdfImageHandler#image property to get actual image.
PdfImageHandler | null
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);
PdfImageHandler | null
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|null
Gets the button's caption used when the user rolls the cursor into its active area without pressing the mouse button.
string | null
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 | 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