Solved

extracting pdf info

Posted on 2012-03-26
6
324 Views
Last Modified: 2012-03-27
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?

Thanks!
Zack
0
Comment
Question by:zack4x4
  • 3
  • 3
6 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 37771266
Can  you please provide a little bit more information about what you need to do.
0
 
LVL 4

Author Comment

by:zack4x4
ID: 37771563
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.

Thanks
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 37771677
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.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 4

Author Comment

by:zack4x4
ID: 37772062
I have a little experience with javascript.  I know PHP and perl.  Ok will look at those functions.
0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 37772109
You can find the Acrobat JavaScript reference here:
http://livedocs.adobe.com/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?href=JS_Dev_Overview.71.1.html&accessible=true
You may have to click on the button on the upper left corner to get the navigation tree.
0
 
LVL 4

Author Closing Comment

by:zack4x4
ID: 37772136
ok appreciate it!  will check into it thanks
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Abobe Reader XI - Print with page numbers 3 44
merge adobe pdf files 14 92
Adobe Acrobat Pro: how to copy style? 2 70
pdf to word 13 58
Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe In a previous Experts Exchange article, How To Rename-Move a Batch of PDF Files Based on Contents of the Files (http://www.experts-exchan…
Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe INTRODUCTION This article presents a solution to a question (http://www.experts-exchange.com/Programming/Installation/Q_28396542.html)…
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 this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now