Business Spreadsheets has developed a free Excel program to extract and import PDF data into Excel which can be downloaded and used without restriction.
There is a common need to extract and import specific data from PDF files into Excel. Since Excel does not natively support the reading of PDF content, utilities are needed to convert the PDF file content for the Excel format. Several commercial applications accomplish this; however it is often the case where only specific data is required to be imported from multiple PDF files into one structured format.
We created such an application by using VBA code in conjunction with an open source PDF to Text conversion utility, which can be found at Foolabs.
Update: 19-Feb-2012 A new version also extracts multiple instances of the same data matching pattern from one or more PDF files.
The program relies on the conversion utility (included in the download) and all PDF files to reside in the same directory as the Excel application. Text or data to extract are defined in the Control sheet by specifying start text, end text and multiple replacements routines with wildcard support. This enables flexibility to obtain comparable data from multiple PDF files based on patterns independent of different PDF file structures.
As many extraction rules as required can be set in order to create a table of information imported by extraction rule and PDF file name. Information on how to set up rules is available within the Excel application with a help icon and cell comments. The VBA code is commented and open for modification.
Any improvements or new features to the code are welcome to be posted here so that we can update the download version to the benefit of everyone.
In this case it looks like "Total Due" should be the start text and the end text a new line. Otherwise, if you want the invoice number then use that as a pattern and then multiple wild card replacements to remove everything between that and the amount.
I would need tow help here.
1) For me replacement text is not working fine.
For Eg: My start text is :Receiving Office Engagement Number" which is simlier in most of the PDF .but few PDF have as "Receiving office codeblock" or "Engagement Number" SO it is not piking for those PDFs. How do i put the replacements ?
2)My PDF has Number is multiples palce.
Eg: Number ;ABC123 is in several place in my PDF si the out put is giving 3 to 4 lines.So i would need it to pick only once. How do i change the code ?
From the PDF on Google drive, it seems that you need to have "PERSONAL INFORMATION" as the start text and "STRENGTHS AND ABILITIES" as the end text which would get everything in between. You can also then replace these strings in the replacement pairs.
Firstlty, I would like to thank you for a really nice tool. I have tried it with your test files successfully but it doesn't work for for my own pdf file - The result is always empty...I already put the pdf file on the same folder like you said.
My pdf is here: https://drive.google.com/file/d/0B822d4OBtHm5Mi1hM0dMaW1LMzg/edit?usp=sharing
I tried different rules like your instructions but the result is always empty...Could you please review my case and give me your advice?
Thanks for the tip, I actually went back and counted all the spaces between the % and the following number 10.0. I found 7 spaces so I inserted them in the 'Replacement Pairs' and that seems to fix the issue. Thanks again.