Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - How to identify docs with Annotations?
  FAQ FAQ  Forum Search   Register Register  Login Login

Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

How to identify docs with Annotations?

 Post Reply Post Reply
Author
gkaiseril View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Location: USA
Points: 4111
Post Options Post Options   Quote gkaiseril Quote  Post ReplyReply Direct Link To This Post Topic: How to identify docs with Annotations?
    Posted: 15 Feb 2012 at 7:10pm
You also need to look carefully at the annotations you are about remove. Formatted links are annotations.
Back to Top
BAlheit View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Points: 1113
Post Options Post Options   Quote BAlheit Quote  Post ReplyReply Direct Link To This Post Posted: 15 Feb 2012 at 5:44pm
You can use the method destroy of annotations.

Example of the Javascript Reference:

// Remove all "FreeText" annotations on page 0.
var annots = this.getAnnots({ nPage:0 });
for (var i = 0; i < annots.length; i++)
if (annots.type == "FreeText") annots.destroy();
Back to Top
oald View Drop Down
Member
Member


Joined: 16 Sep 2011
Points: 42
Post Options Post Options   Quote oald Quote  Post ReplyReply Direct Link To This Post Posted: 15 Feb 2012 at 11:27am

I wonder if JavaScript can identify documents with Annotations and remove all of the annotations. I'd like to execute the JavaScript codes in "Advanced - Document Processing - Batch Processing" to process documents in batch.

I check the "JavaScript for Acrobat API Reference" and find that there are methods "getAnnot" and "addAnnot", I'm not sure if there is a method to remove the annotations.

Your help is really appreciated!

My Product Information:
Acrobat Pro 8.1.6, Windows
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.016 seconds.