Page 1 of 1
Export a pdf file to txt
Posted: Sat Jun 18, 2011 12:26 pm
by SPP
Hi everyone (and sorry for my english),
Somebody knows how to export a pdf file to a txt file using adobe reader from PB?
I tried to use another tools, but the conversion is diferent than the adobe way.
Thanks in advance.
Re: Export a pdf file to txt
Posted: Sat Jun 18, 2011 1:30 pm
by IdeasVacuum
You can use PB's RunProgram() to, erm, run Adobe Reader, command line style. The place to ask about the command line options:
http://blogs.adobe.com/pdfdevjunkie/200 ... comma.html
Edit: Ah, this page seems to suggest that Adobe do not provide an option for saving as a text file via the command line:
http://livedocs.adobe.com/acrobat_sdk/1 ... 22.31.html
Try these PB links to make a DLL:
http://www.purebasic.fr/english/viewtop ... 13&t=46625
http://www.purebasic.fr/english/viewtop ... 04#p270204
Re: Export a pdf file to txt
Posted: Sat Jun 18, 2011 8:39 pm
by SPP
Hi IdeasVacuum,
First of all, thank you very much for your interest.
I have reached the same conclusion, it seems that you can't export a pdf to text file from the command line.
I've tried the solutions of the links you suggest, but the result of conversion is different from Adobe and I can't extract the data I need.
Thanks again.
Regards
Re: Export a pdf file to txt
Posted: Sun Jun 19, 2011 12:41 am
by IdeasVacuum
...It is worth posting the question at pdf dev junkie, you never know, there may be other options undocumented. I had a 'wish' for a command line option for AbiWord not so long ago and luckily there was an undocumented feature that did the trick.
Re: Export a pdf file to txt
Posted: Sun Jun 19, 2011 8:34 am
by SPP
i try the post that you say,
best regards