Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 To: Christopher Reed
  Where is Christopher Reed?
 Lubbock
 Texas - United States
 Christopher Reed
 Tags
Subject: RE: Interpret PDF content
Thread ID: 228588 Message ID: 228794 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: Projects and Design
Date: Thursday, May 21, 2009 4:28:44 PM         
   


> > Working on the project to interpret PDF content and convert the information from PDF to EDI.
> >
> > No budget to buy 3rd party tools to operate PDF at this moment
> >
> > Tried to copy / paste and convert the PDF to text. However the text output is not having the information in good order (line 3 may come after line 5)
> >
> > appericate your suggestion.
>
> I have run into this myself and generally comes from the PDF information was stored in some type of tabular format. What I did was to review the format of the resulting text file and look for patterns in the data. Then, I wrote a PRG that would go through each line, processing those lines that I need, copying those back out to another text file. Then, I would upload the new text file into its own data table (DBF) to be used to create my data to used within the application.
>
> Unless you find a pattern that works with parsing, then you will probably not be able to do much else with your PDF "data". Another option would be to go back to the producer of the PDF file and work with them to produce a PDF that can be exported into a usable format for your EDI process.
>
> Hope this helps!
>
> Christopher Reed
> "The oxen are slow, but the earth is patient."

Yes the formatting is lost when you save as txt format.
The problem is a bit different when you select the area with the text pdf tool, copy and paste in notepad or wordpad for ex.The formatting is better.
You can also if you have read/write acrobat (5.0 or better) to save to RTF format.

Dont rate please.its only for the pleasure to help.Give me only a feed back.
Yousfi Benameur

ENTIRE THREAD

Interpret PDF content Posted by Josephine Lee @ 5/20/2009 5:02:01 AM
RE: Interpret PDF content Posted by Yousfi Benameur @ 5/20/2009 12:04:34 PM
RE: Interpret PDF content Posted by Josephine Lee @ 5/21/2009 5:16:38 AM
RE: Interpret PDF content Posted by Yousfi Benameur @ 5/21/2009 1:59:08 PM
RE: Interpret PDF content Posted by Christopher Reed @ 5/21/2009 4:02:04 PM
RE: Interpret PDF content Posted by Yousfi Benameur @ 5/21/2009 4:28:44 PM