Take a look at the portable bit map utilities, like pdftopbm and gocr, the tool that converts to text. You could convert to pbm, jpg, etc...and then use gocr to get text.
I am not sure if gocr works on pdf files, but if not you can use pdftopdm.
If you have the source for pdftotext , you can change it to do anything you want. If you don't have source, or if you want a simple solution, write a shell script that calls pdftotext for each PDF file in your current directory:
for file in *.pdf
do pdftotext "$file" "${file%.pdf}".txt
done
Sorry. By posting in the Shell Programming and Scripting forum, I assumed that you knew how to write and run a shell script.
Making more wild assumptions:
you are using a UNIX or Linux system,
you have more than one directory that contains files you want to process,
you have a bin directory in your home directory, and
$HOME/bin is in your command search path:
then create a file named pdftotextdir in $HOME/bin containing:
#!/bin/ksh
if [ $# -eq 1 ]
then cd "$1"
else printf 'Usage: %s directory\n' "${0##*/}" >&2
exit 1
fi
for file in *.[Pp][Dd][Ff]
do pdftotext "$file" "${file%.[Pp][Dd][Ff]}".txt
done
(If you don't have a Korn shell, you can change /bin/ksh to /bin/bash or the pathname of any shell that understands POSIX required shell variable expansions.)
Then issue the command:
chmod +x $HOME/bin/pdftotextdir
Then you can run your new utility to use pdftotext on every PDF file in whatever directory you want to process by issuing the command: