Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ghostscript Pdfwrite Permissions

64 views
Skip to first unread message

Beeg

unread,
Dec 2, 2009, 7:35:33 AM12/2/09
to
I use ghostscript to create a PDF file from a number of Postscript
files using the following code in Solaris:
gs -DNOPAUSE -q -sDEVICE=pdfwrite -sPAPERSIZE=a4 -
dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dAutoRotatePages=/
PageByPage -sOwnerPassword=null -dEncryptionR=3 -dKeyLength=40 -
dPermissions=-5952 -sOutputFile=/autoDataSets/p3_pdf/gsminus5952.pdf
IN.ps

The PDf files get created ok, but I want to DISABLE all security
permissins e.g. PRINT, COPY TEXT etc but ENABLE document signing.
I have tried to work out the value for -dPermissions to allow this
with very little sucess, I can turn everything on, everything off, and
a couple of other combinations but never the one I want!!!

Any help would be very much appreciated

Helge Blischke

unread,
Dec 2, 2009, 4:09:51 PM12/2/09
to
Beeg wrote:

The /Permissions key is copied verbatim to the /P key in the PDF's
encryption dictionary of the standard security handler. The bits of this
integer value define the user access permissions.

As you can see in the PDF spec (table 3.20 in the PDF 1.7 reference manual),
document signing is not subject to this value.

Helge

Beeg

unread,
Dec 3, 2009, 5:10:28 AM12/3/09
to
> Helge- Hide quoted text -
>
> - Show quoted text -

Thank you Helge, I found the reference manual quite confusing. It
makes a bit more sense afetr reading your reply. I want to enable
document signing in Acrobat Reader, do you know of a way to do this
via Ghostscript (or any other Unix/Solaris scriptable tool). I am
trying to avoid installing Acrobat on a number of PC's!

Helge Blischke

unread,
Dec 3, 2009, 6:11:08 AM12/3/09
to
Beeg wrote:

AFAIK, Ghostscript supports PDF 1.4 (Acrobat 5). After looking into the PDF
spec for PDF 1.4, digital signatures in PDF 1.4 are only defined for
interactive forms, a feature Ghostscript seems not to support.
You probably need to look for a different tool.

But maybe there is somebody else around who is more aquainted to the digigal
signature stuff than me.

Helge

Beeg

unread,
Dec 3, 2009, 11:44:24 AM12/3/09
to

Oh I see!! There's me thinking it would be simple!!!!
I was hoping to use something that is native in Solaris!
hopefully someone (not trying to sell a bit of software) will be able
to help.

B

Beeg

unread,
Dec 8, 2009, 6:53:48 AM12/8/09
to
> B- Hide quoted text -

>
> - Show quoted text -

Is there anyone out there able to help?
Is there any way of enabling Document Signing via a script in either
Windoze or Solaris?
I need to sign PDF's created by Ghostscript(Solaris) in Adobe Reader
8.

Many thanks
B

Ulrich Windl

unread,
Jul 27, 2010, 3:51:43 AM7/27/10
to
Beeg <bee...@hotmail.com> writes:

[...]


> Is there anyone out there able to help?
> Is there any way of enabling Document Signing via a script in either
> Windoze or Solaris?
> I need to sign PDF's created by Ghostscript(Solaris) in Adobe Reader
> 8.

Adobe Reader cannot create PDF documents, and Adobe Acrobat can sign
documents. So what?

>
> Many thanks
> B

0 new messages