usage: pdftotext [options] <PDF-file> [<text-file>]
I'm using pdftotext (xpft, usage above) to covert all pdfs in a directory (and subdirectories) to textfiles. It doesn't matter if structure is preserved or not I just want to write the files to a different directory.
I have cmd cd already pointing at the directory ("C:\input" say ).
So if the path of a given input file is
C:\input\filename.pdf
And I want to output to
C:\output\filename.txt
My command:
for /r %i in (*.pdf) do pdftotext "%i" -raw "C:\output\%i"
Nearly works, but it attempts to output to
C:\input\C:\output\filename
which obviously causes an error.
How do I solve this?