coherentgraphics / cpdf-binaries

PDF Command Line Tools binaries for Linux, Mac, Windows
GNU Affero General Public License v3.0
593 stars 42 forks source link

New feature: save pdf info #10

Closed wallace7souza closed 8 years ago

wallace7souza commented 8 years ago

Hi guys! Is there a way to save pdf info? In my scenario, i can't read console output, even passing ' > out.txt' i'm not able to save. My ideia is to use something on CLI like this: cpdf.exe -info my.pdf -o "c:/temp/info.txt" Any help is welcome!

johnwhitington commented 8 years ago

What exactly is preventing you from capturing the console output? If you're using cpdf via a script, there will be a method to capture the output, I'm sure.

wallace7souza commented 8 years ago

I'm developing a firefox addon, for some restrition, outputs from shell commands are not capturing otherwise using '> out.txt' but for some reason is not working =/

wallace7souza commented 8 years ago

I found a solution. The right way to use and get output from process is this.

https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/system_child_process