You are not logged in.

#1 2011-09-16 09:19:55

enricostn
Member
Registered: 2011-08-09
Posts: 57

[SOLVED] ghostscript pdfwrite device problem

Hi,

I'm trying to "compress" the file size of a PDF file with this ghostscript command:

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

but I get this error:

**** Unable to open the initial device, quitting.

I've searched for a while and it seems to be a "path" problem for the output file. But I can't understand how to fix it.

Could anyone help me, please?


EDIT: I was writing sOutputFile=output.pdf instead of -sOutputFile=output.pdf (thank you to the great gs community on IRC channel)

Thank you,

enrico

Last edited by enricostn (2011-09-16 12:13:45)

Offline

Board footer

Powered by FluxBB