Programmatically Add Comment to PDF file.

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.
AndyPeersAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Karl Heinz KremerCommented:
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
AndyPeersAuthor Commented:
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
AndyPeersAuthor Commented:
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
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Karl Heinz KremerCommented:
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
AndyPeersAuthor Commented:
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
Karl Heinz KremerCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AndyPeersAuthor Commented:
Whats needed to do this in VB?
0
Karl Heinz KremerCommented:
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
AndyPeersAuthor Commented:
It won't let me download the v5 SDK.
0
AndyPeersAuthor Commented:
OK i got it!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Acrobat

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.