Simple ColdFusion 8 PDF Inspector

Hi folks,

I'm working on a project where I programmatically fill in government PDF forms. In today's case -- Lien Applications.

Well, the first thing I've got to know about the PDF file is:

  1. Is it really an interactive form? (if it's not I'll have to try and add form fields by hand with Adobe Acrobat Pro)
  2. If it's already an interactive form, then what's the structure of that form, and what are the names of the form fields?

The client I'm doing this for has stores in nine different states, so that's nine different versions of basically the same form -- but every state is a little different. At first I wrote a really quick and very specific CF program to give me this information. But now that I'm on my second and third form I decided that I'd rather spend a few minutes building a tool which would accept a path to my PDF and upon clicking a button give me the information I needed.

So that's what I did. And here's the code. Improvements could probably be made, and if you like, you're completely welcome to do so. But what's here works perfectly for my purposes.

[More]

TweetBacks
Comments
BlogCFC was created by Raymond Camden. This blog is running version 5.9.4.001. Contact Blog Owner