[cups] setting margins when printing a ps (postscript) file

Istvan Gabor suseuser04 at freemail.hu
Thu Feb 19 02:37:20 PST 2015


Istvan Gabor írta:

>What I don't know what to write exactly in the PsPrefilter file.
>I tried
>
>#! /bin/bash
>
>ps2pdf -sPAPERSIZE=a4
>
>but it did not work. I don't know how to write the script.
>
>Could you please give hint?

By trial and error I could make a working filter.
The filter contains this:

#! /bin/bash
# have the input at fd0 (stdin) in any case
[ -n "$6" ] && exec <"$6"
ps2pdf -sPAPERSIZE=a4 - -


Regards,

Istvan



More information about the cups mailing list