Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Handling PDF files with VBA

Status
Not open for further replies.

LuAlPa

IS-IT--Management
Aug 17, 2006
18
US
We receive PDF files resembling Excel files. Same position, same data type, over and over again.
Has anyone developed a means of opening a PDF file from VBA and getting data into variables? After that generating the Excel file with just the data I need is simple enough. (PDF documents go from 5 to 20 pages of data)
Thank you in advance


 
How very coincidental! I am looking for the very same answer, and we're only 3 days apart! Have you had any luck with this?

Aubs
 
Nothing so far. I have investigated a few products that are around and the only one with some promise seems to be PDFGrabber which transforms PDF into an excel spreadsheet with as many worksheets as necesswary. But nothing from the VBA community

 
Hi LuAlPa,

Thanks for your reply.

At work, I have a copy of Acrobat Professional 7 (there may be a trial version available) which has the functionality of SAVE AS, and with the pdf's I have, when I use this and change the Save as type to "Text (Plain).txt" it puts double spaces between cells

so a table:
[tt]
| ID | Name | Address |
| 1 | Aubs Me | My Street |
| 2 | Your Name | Your Street |
[/tt]
would appear:
[tt]
1 Aubs Me My Street
2 Your Name Your Street
[/tt]

Which is then simple to convert into an Access table.

How do you currently import the tables?

I wonder if there is a way of programatically 'asking' Acrobat to save as plain text and then importing?

Worth a look into.

Aubs
 
Hi Aubs,
At present I am not processing them in any way except by trying to use PDFgrabber. But the option of exporting using Acrobat Professional is a venue worth exploring. Thank you.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top