Copy link to clipboard
Copied
I have a reset button on my PDF that resets all form fields and would also like to delete any signatures using the "fill and sign" scribble tool (not the digital signature).
I am using the following code to try and accomplish this, but is not working (assuming the signature is not an annotation but an image?)
Is it possible to remove the scribble signature?
this.syncAnnotScan();
var annots = this.getAnnots({nPage:0});
if (annots) {
var num = annots.length;
for (var i = num - 1; i > -1; i--) {
annots.destroy();
}
}
Copy link to clipboard
Copied
Is the signature always on the first page?
Copy link to clipboard
Copied
Yes, it is a single page document.
Copy link to clipboard
Copied
Can you share a file with this signature? Use Dropbox, Google Drive, Adobe Cloud, etc., and post a link to it here.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
When you sign that way and subsequently save, the annotation gets flattened, so you can't manipulate it with JavaScript.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now