>>>>>I cannot tell what is the "best" as it depends on how the text is displayed/incorporated into the PDF document, and what kind of fonts are used.
>>>>>Also it depends on what kind of application you are going to do (for in_office use, for your own, for distribution, etc).
>>>>>
>>>>>Anyway, try pdftotext:
http://www.aboutlyrics.com/Software/Download/pdftotext.php.
>>>>
>>>>Have you personally tried this product? I tried running the file and nothing happened, which scared me a little bit.
>>>>
>>>>>There were posts here explaining how to get the PDF document window handler, and how to send keystrokes to the window. In some cases you could use it too.
>>>>
>>>>Is this one (from you) one of the ones you mean? Sounds doable. Thanks.
>>>>
>>>>Alex
>>>
>>>We're using both products (PDFToText and TextToPDF). Remind me tomorrow about code snippet. I just closed my VPN connection...
>>
>>Thank you, especially about code snippet.
>
>Here is from my colleague's code:
>LOCAL lcPDFName,lctxtName, lcCommandText
> lcPDFName = tcPDFName
> lctxtName = STRTRAN(UPPER(lcPDFName),".PDF",".TXT")
> IF FILE(lctxtName)
> ERASE (lctxtName)
> ENDIF
> lcCommandText = ADDBS(ALLTRIM(c_system_parameters_list.clocation_client_notes)) + "PDF2TXT.EXE -a -q -c ##PDFFILE## ##TXTFILE##"
> lcCommandText = STRTRAN(lcCommandText,"##TXTFILE##",lctxtName)
> lcCommandText = STRTRAN(lcCommandText,"##PDFFILE##",lcPDFName)
>*-- lcCommandText = "S:\PDFView\PDF2TXT.EXE -a -q -c S:\PDFView\04111067c.pdf S:\PDFView\04111067c.txt"
> RunShellScript(lcCommandText)
> =MMSleep(200)
>>
Thank you very much Naomi.
Alex