pdftoppm -v version info send to stderr
tested with 0.80.0 and 0.71.0
pdftoppm -v 1> /dev/null # does still output the version info
cmd = [
"pdftoppm",
"-v"
]
with subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE) as p:
output, err = p.communicate()
print("err: %s" % err)
prints the version info as
err: <version info>