I haven't found a way to do this. The only available vehicle for directly creating PDF structures in your PostScript is with the "pdfmark" operator. Nothing in the PDF documentation refers to password protection.
Adobe has apparently abandoned any attempt to keep pdfmark up-to-date with the PDF spec. Just another example of Adobe's lack-of-interest in addressing the needs of the developer community.
Acrobat, of course, allows you to do this when you save the document. The save dialog as a settings dropdown list. Choose "normal" and enter your passwords.
Yes but since the PDF is generated trough an appliaction I wish to automate this part... For now the only way I got to do this is to configure Acrobat Distiller to set a password and security to all PDF it will generate.
I think you've found the best way, then. Sorry, there just isn't a PostScript operator or structure to do this, at least not until Adobe updates the pdfmark operator.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.