Subprocess Popen And Pipe In Python
The following code prints an empty line as an output which is false. The problem is not in the permissions, since I tested the command with 777 permissions for the pdf -file. How c
Solution 1:
pdftotext creates a file by default. To send the result to standard output, use:
pdftotext file.pdf -
or in Python:
output = Popen(['pdftotext', '/home/aal/Desktop/lkn_pdf/appa.pdf', '-'], stdout=PIPE).communicate()[0]
Post a Comment for "Subprocess Popen And Pipe In Python"