pdftotext is part of xpdf, so if you don't already
have xpdf on cygwin then you won't find pdftotext on
your system.
pdf2ps and ps2ascii however are both installed for me in cygwin (however, I did customize my install rather than just using defaults, so YMMV). Using these two you should (I would guess) be able to just chain them together:
pdf2ps myFile.pdf - | ps2ascii > myFile.txt
The '-' is required to send pdf2ps' output to stdout, by default it will write to myFile.ps.
Now for the disclaimer: I created a simple file in OO, printed to a PS file and converted that PS to PDF using ghostview.
Decoding the original PS file using ps2ascii worked fine, but coming down from the PDF through the above mentioned chain did not. When I break the chain into parts and look at the intermediate PS file, it is grainy and generally lower quality than either the PDF or original PS, so I assume that's why ps2ascii barfed. You may be able to get around this using the -dLanguageLevel option of pdf2ps, but I didn't have time to experiment with that just now.
Jacob
____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
