Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Delete scribble "Fill and Sign" signature with javascript

New Here ,
Sep 04, 2017 Sep 04, 2017

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
561
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 04, 2017 Sep 04, 2017

Is the signature always on the first page?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 04, 2017 Sep 04, 2017

Yes, it is a single page document.

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

Can you share a file with this signature? Use Dropbox, Google Drive, Adobe Cloud, etc., and post a link to it here.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 04, 2017 Sep 04, 2017
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 04, 2017 Sep 04, 2017
LATEST

When you sign that way and subsequently save, the annotation gets flattened, so you can't manipulate it with JavaScript.

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