These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

batch find stamp

xmsweetie
Registered: Mar 29 2007
Posts: 2

How can I batch find the stamp in the existing PDF and save them to a separate folder location? I'm using Adobe Pro v.7. Any help is appreciated. Thanks!

My Product Information:
Acrobat Pro 7.0.7, Windows
tedpadova
ExpertTeam
Registered: Dec 31 2005
Posts: 848
Even if you could (which you cannot) batch find Stamp comments in a PDF file (I'm assuming you want them all selected) you can't export the selected Stamps to a file and save to a separate folder.

Just can't be done.

ted

The author of numerous books on Acrobat, Photoshop, Illustrator and the Adobe Creative Suite, and an international speaker on Adobe Acrobat, Ted Padova is a well-known PDF guru.

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The word "Stamp" is used rather loosly. In official PDF lingo it means a special type of PDF annotation, i.e., the Stamp annotation. But it's used many times to mean any kind of text or image that is place over an existing page, such as a watermark or even a text field. So before you can write a script to collect document stamps you have to know the kind of animal you're looking for.

If you are refering to Stamp annotations, then all you have to do is search the annotation list returned by the "doc.getAnnots" function.

I don't know what you mean by save them to a separate folder. What you save depends a lot on how you are planning to use this information later. There are only a couple of file formats inwhich complete PDF Annotations can be stored using Acrobat, FDF and PDF.

The "doc.exportASFDF()" function can save an FDF file with all the PDF annotations in it. This is one of techniques used for managing PDF review/collaboration. This function writes all the annotations in the PDF to the FDF File. You can't, for example, save only Stamp annotations.

There are also some tricky undocumented methods for collecting stamp data in to a format that can be saved. Look through the old "annots.js" file that shipped with versions of Acrobat before 7.0. You'll find a lot of stuff there about stamps. There's no guarenteed that any of this code is still good since it's undocumented.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script