Export a pdf file to txt

Just starting out? Need help? Post your questions and find answers here.
User avatar
SPP
User
User
Posts: 44
Joined: Sun Mar 04, 2007 10:34 am
Location: BCN - SPAIN

Export a pdf file to txt

Post 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.
The PB community is great... nice to meet you!
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Export a pdf file to txt

Post 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
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
SPP
User
User
Posts: 44
Joined: Sun Mar 04, 2007 10:34 am
Location: BCN - SPAIN

Re: Export a pdf file to txt

Post 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
The PB community is great... nice to meet you!
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Export a pdf file to txt

Post 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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
SPP
User
User
Posts: 44
Joined: Sun Mar 04, 2007 10:34 am
Location: BCN - SPAIN

Re: Export a pdf file to txt

Post by SPP »

i try the post that you say,

best regards
The PB community is great... nice to meet you!
Post Reply