coherentgraphics / cpdf-binaries

PDF Command Line Tools binaries for Linux, Mac, Windows
Other
581 stars 42 forks source link

Cannot redirect output #47

Closed ghost closed 4 years ago

ghost commented 4 years ago

I am using powershell to redirect the output of the executable but it keeps spamming me with the non-commercial use text. Please advise.

ghost commented 4 years ago

Nevermind, I figured out that the developers were abusing STDERR. I have used the following code to suppress the spam.

cpdf.exe yourcodehere 2>&1 | Out-Null