extracting pdf info

Hi all,

I'm working with a non profit and need your help....i have to extract one piece of printed text from a pdf file on each page and save that page to a file name based on the extracted data.

Can anyone give me a starting point?

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:
Can  you please provide a little bit more information about what you need to do.
zack4x4Author Commented:
Sure!  There is basically about 100 pages.  In the upper right hand corner of each pdf there is a city name.  I need to take each page, extract that city name and take that individual page save it to a new file with that city name as the file.

Karl Heinz KremerCommented:
This problem does not have a straight forward solution... You need to find out - based on context - what the city name is. PDF does not have a good way to identify objects on a page, so you need to get all the text from the page, and then compare the position of the text to where you would expect the city name to be.

What tools do you want to use?

Do you have any experience with JavaScript? Acrobat allows you to write a JavaScript program that can extract all the text on a page, and it will present that text word by word with location information. Take a look at the Doc level functions getPageNumWords, getPageNthWord and getPageNthWordQuads. You then have to compare the words and locations you find to the area that you are interested in, and once you've identified the city (e.g. based on words that are around the city name), you need to save the page. JS also provides functions to do that.
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

zack4x4Author Commented:
I have a little experience with javascript.  I know PHP and perl.  Ok will look at those functions.
Karl Heinz KremerCommented:
You can find the Acrobat JavaScript reference here:
You may have to click on the button on the upper left corner to get the navigation tree.

Experts Exchange Solution brought to you by ConnectWise

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
zack4x4Author Commented:
ok appreciate it!  will check into it thanks
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.

All Courses

From novice to tech pro — start learning today.