Alejandro:
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.
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.
>I need to extract text from two Acrobat documents programmatically. What is the best way to do it?
>
>As an experiment, I was able to open the first document with the Adobe reader, select all text, copy/paste to a text file and parse from there. The second document only allows selecting text from one page at a time, so you have to copy/paste each page separately.
>
>TIA,
>
>Alex