Delete scribble "Fill and Sign" signature with javascript

Sep 04, 2017

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();

    }

}

TOPICS
Acrobat SDK and JavaScript

Views

231

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Delete scribble "Fill and Sign" signature with javascript

Sep 04, 2017

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();

    }

}

TOPICS
Acrobat SDK and JavaScript

Views

232

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 04, 2017 0
Sep 04, 2017

Copy link to clipboard

Copied

Is the signature always on the first page?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 04, 2017 0
Sep 04, 2017

Copy link to clipboard

Copied

Yes, it is a single page document.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 04, 2017 0
Sep 04, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 04, 2017 0
Sep 04, 2017

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 04, 2017 0
Sep 04, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 04, 2017 0