[DVIPDFMx] Encrypting PDFs without user input.

Matthias Franz matthias at ktug.or.kr
Sun Mar 6 12:37:46 KST 2011


On Sat, Feb 19, 2011 at 06:08:50PM -0500, Michael Joyner wrote:
> > Which way is your favorite? New command line option, external file, or
> > \special?
> 
> I think via \special would be the least intrusive to any work chain. One can
> always \include or \input the \specials when needed, or leave the include
> file empty when encryption is not needed. (Or even get fancy with an ifthen
> package)
> 
> Maybe consider having a \special{Enrypt:True, OwnerPassword=BLAH,
> UserPassowrd=BLAH, OTHER encryption options) type setup that can be directly
> put into the latex file ?

That should be possible by modifying scan_special and dvi_scan_specials
in dvi.c. I'll give it a try asap.

Best,
-- 
Matthias


More information about the dvipdfmx mailing list