Find Invoice Number in PDF

Sarry

New Member
Joined
Aug 20, 2010
Messages
2
Hi, Been watching and reading posts here for some time, and am never quick enough to help. But now i have my own problem. I have harvested some excellent code from the net to find the text "Invoice No:" on a PDF and verify it is found. however I cannot find get only the number next to it. This problem is repeated for "consignment no:" and "order no:" which i would also like to extract.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
How are you searching for the text? The Acrobat API method FindText verifies that a string exists in the document, however you need to use the GetText method in a loop to read all the document text into an array or string and then you can search the array or string for "Invoice No:" and get the number near it. The thread below shows this method:

 
Upvote 0
Hi John_w, that was extremely helpful thank you, from the complete compiled pdf text i was able to find and extract the data I needed. when I have finessed the code some more I will post it here.
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top