[gs-devel] -dPermissions ignored
Russell Lang
gsview at ghostgum.com.au
Thu Apr 30 14:17:30 PDT 2009
All the options must be put before the "-c .setpdfwrite", and before the first input
filename.
On 30 Apr 2009 at 14:15, HAENEL Florian FDEP-G (AREVA NP GmbH) wrote:
> Hello,
> I want to restrict printing on some of my documents and I am using the following commandline:
>
> 126 ¬ gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite \\
> 127 ¬ -sOutputFile=$tempname.pdf -dPDFA -c .setpdfwrite \\
> 128 ¬ -sOwnerPassword=owner -dEncryptionR=3 -dKeyLength=128 -dPermissions=-3904\\
> 129 ¬ -dCompatibilityLevel=1.5 -r600 \\
> 130 ¬ -dEmbedAllFonts=true -dSubsetFonts=true -dMaxSubsetPct=100 \\
> 131 ¬ -dAutoFilterColorImages=false -dAutoFilterGrayImages=false \\
> 132 ¬ -dColorImageFilter=/FlateEncode -dGrayImageFilter=/FlateEncode -dMonoImageFilter=/CCITTFaxEncode \\
> 133 ¬ -dEncodeColorImages=true -dEncodeGrayImages=true -dEncodeMonoImages=true \\
> 134 ¬ -dDownsampleGrayImages=false -dDownsampleMonoImages=false \\
> 135 ¬ -dProcessColorModel=/DeviceCMYK -dUseCIEColor
>
> I assume the problem lies in conflicting options like PDFA not supporting encryption, but since gs does not complain,
> I come here to ask, what the problem might be.
>
Russell Lang gsview at ghostgum.com.au
Ghostgum Software Pty Ltd http://www.ghostgum.com.au/
More information about the gs-devel
mailing list