[tex-k] Dvipdfmx may be have a bug? Encrypted pdf does not use the specified owner password

Akira Kakuto kakuto at fuk.kindai.ac.jp
Wed Apr 12 15:51:16 CEST 2017


> \special{pdf:encrypt ownerpw (abc) userpw (xyz) length 128 perm 2052}
> \documentclass{article}
> \begin{document}
> This is a test.
> \end{document}

> Tested:
>
> Win7 64bit + MiKTeX 2.9 32bit
>
> Did not use the owner password "abc" to encrypt the pdf,
> but the user password "xyz" by setting.
>
> I tried using the command line mode, but the problem remains the same。
>
>
> miktex-dvipdfmx.exe -S -P 0x0804 -K 128 encrypt.xdv

The \special{pdf:encrypt ...} is new compared with the command
line option -S, -P, -K. Please don't use the command-line option
-S, -P, -K. It is possible that command-line one has been broken from
some day. In your example, just run
miktex-dvipdfmx.exe encrypt.xdv

Best,
Akira



More information about the tex-k mailing list