[DVIPDFMx] Encrypting PDFs without user input.

Matthias Franz matthias at ktug.or.kr
Wed Mar 9 05:35:25 KST 2011


Hello Michael,

I've added a new special to the cvs version of dvipdfmx. It will be
included in the next snapshot. The syntax is as follows:

  \special{pdf:encrypt ownerpw (abc) userpw (xyz) length 128 perm 252}

("Length" is the key length in bits.) If a parameter is omitted, the
default value / empty password is used. The special must appear at the
beginning of the file. In LaTeX you can write something like

  \AtBeginDocument{\special{pdf:encrypt owner (ABC) user (XYZ)}}

Hope this helps.

Cheers,
-- 
Matthias



More information about the dvipdfmx mailing list