Forum How do I...?

Command line tool to convert input stream to a pdf

dwhitby
Hi,

I am trying to do this from the command line:

c:/program files/prince/engine/bin/prince.exe --input=html - -o c:/downloads/generated_pdf.pdf

I would then pipe in the html to convert as an input stream, close it then view the results in the generated_pdf.pdf file but when I run it I get the following message:

Errno::EINVAL: Invalid argument - c:/program files/prince/engine/bin/prince.exe --input=html - -o c:/downloads/generated_pdf.pdf

Can this be done or am I using the wrong syntax?

Thanks for any help.
dwhitby
Never mind, I solved it - I was having issues with spaces in the file path so I just moved the engine into a folder without spaces and then it worked.