?
Solved

Programmatically Add Comment to PDF file.

Posted on 2004-11-16
12
Medium Priority
?
1,255 Views
Last Modified: 2008-02-01
Is there anyway to programmatically add a comment or a text field to a PDF file? I will eventually be doing this in a batch process on multiple PDF files.
0
Comment
Question by:AndyPeers
  • 6
  • 5
11 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 12596255
There are at least two ways to do this with Acrobat:

You can create an Acrobat batch process (with Adobe Acrobat 6 Professional) and some JavaScript, and you can write a seperate application that uses Acrobat's APIs to add the form fields (e.g. a VB application that uses the VB/JavaScript bridge). I would go with the JavaScript solution, because it's much easier to do. You can e.g. process a directory full of PDF files in one operation. Please let me know if you need some more information for either one of these mechanisms.

In addition to this, you can also use a non-Adobe PDF librarry or toolkit to create these comments or form fields. Depending on your programming environment, there are several solutions available. If this is something that looks more interesting to you than the Acrobat solution, I can provide some pointers.
0
 

Author Comment

by:AndyPeers
ID: 12596540
What I'm looking to do is a have a folder of files with the ID in the filename. I want to look the ID up in a CSV file then grab the data associated  with that ID and add it to the PDF format. I have Adobe Acrobat 6 Pro. I would prefer to do this in a VB app or C#. Where can i get a reference for the Acrobat API?
0
 

Author Comment

by:AndyPeers
ID: 12596554
What I'm looking to do is take a folder of PDF files with the ID in the filename. I want to look the ID up in a CSV file then grab the data associated  with that ID and add it to the PDF file. I have Adobe Acrobat 6 Pro. I would prefer to do this in a VB app or C#. Where can i get a reference for the Acrobat API?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 12596802
You can do this all in Acrobat's JavaScript (at least on a Windows machine): If you make your CSV file a datasource, Acrobat can access it's content via ADBC (this is Adobe's JavaScript wrapper around ODBC). You can get the API documentation on Adobe's web site. Unfortunately not everything is available to the general public. The "good stuff" is only available to ASN members, and this is $195 per year. You can however still get the Acrobat 5 SDK, and most of the information you can find in there is still valid:

http://partners.adobe.com/asn/tech/pdf/acrobatsdks.jsp
http://partners.adobe.com/asn/acrobat/download.jsp#fullinstall  (you can also find the JavaScript documentation on this page)
0
 

Author Comment

by:AndyPeers
ID: 12596988
I'm unable to get any version of the SDK from adobe due to the ASN membership. Can you get me started in creating this script?
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 12597318
You need a free ASN web account to get the Acrobat 5 SDK, this is different from a full ASN membership. Try it again, and select to sign up for the web account.
0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 1500 total points
ID: 12597370
0
 

Author Comment

by:AndyPeers
ID: 12597744
Whats needed to do this in VB?
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 12597865
Did you get the v5 SDK? For VB you need the SDK documentation and samples. In this case, it would actually be benefitilal to get the v6 SDK because it's documentation of this API is better than what came with v5.
0
 

Author Comment

by:AndyPeers
ID: 12597881
It won't let me download the v5 SDK.
0
 

Author Comment

by:AndyPeers
ID: 12597899
OK i got it!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PaperPort is a popular document imaging/management product from Nuance Communications (http://www.nuance.com/). It is in widespread use by both individuals (http://www.nuance.com/for-individuals/by-product/paperport/index.htm) and businesses (http:/…
PDF files have been in the limelight due to its unmatched features.  Personal documents, emails, business reports and eBooks are all converted into PDF files owing to peerless features provided by it. Adding watermark to a PDF file is a method to se…
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Suggested Courses
Course of the Month16 days, 13 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question