pdf2txt.py not executing command

user3368835 picture user3368835 · Jul 22, 2015 · Viewed 8.4k times · Source

Whenever I use pdf2txt.py on my command line the source file opens and the command does not execute. I've just installed the packages and haven't been able to get it to run. For example, I will type the command:

pdf2txt.py -c UTF-8 output.txt "my file.pdf"

after typing the command, the file pdf2txt.py will open and the command won't execute. Has anyone encountered this before? What am I doing wrong?

I'm using windows command prompt. Any help would be greatly appreciated.

Answer

Akshat Harit picture Akshat Harit · Jul 22, 2015

You need to run it as

python pdf2txt.py -c UTF-8 output.txt "my file.pdf

Windows doesn't use the !# syntax, I think.