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!

Extract text from pdf 1

Status
Not open for further replies.

linousa

IS-IT--Management
Mar 8, 2013
79
US
Is it achievable in vpf or better do it outside? I've been doing it outside for a while, it is fully automated and works fine, but I don't want to rely on third party and wanted to check what's on the table.
 
You can do it from within VFP, in the sense that the user doesn't need to go out to Windows to execute a separate program. But you can't avoid reliance on a third-party tool.

There are no native VFP commands or functions for reading a PDF. But whatever tool you are currently using to extract the text, you should be able to execute it from within VFP, either through Automation or ShellExecute(). Obviously we can't tell you how to do that without knowing which utility you are using.

To do the job natively in VFP, you would have to know the full details of the internal PDF file format. I dare say that information would be available somewhere, but to write code to translate it to normal text sounds like a horrendous task.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top