Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to copy Acrobat document text programmatically
Message
 
 
À
01/02/2006 00:34:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01091105
Message ID:
01092395
Vues:
62
This message has been marked as a message which has helped to the initial question of the thread.
>>>>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) 	
>
>Alex
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform