KTUGFaq

KTUG FAQ

로그인:
비밀번호:
가입
How sharper than a hound's tooth it is to have a thankless serpent.
FrontPage › PDFEncryption
PDF / Encryption

DVIPDFMx를 이용하여 문서 열기 암호를 걸거나 인쇄 또는 텍스트 복사/추출을 제한하는 등 보안을 설정하는 방법. 이것은 DVIPDFMx만의 기능이다.


목차


dvipdfmx.cfg에 간략한 안내가 있다.
% Permission flag for PDF encryption: Revision will be 3 if the key size
% is greater than 40 bits.
%
% 0x0004 (Revision 2) Print the document.
%        (Revision 3) Print the document (possibly not at the highest quality
%        level, depending on whether bit 12[0x0800] is also set).
% 0x0008 Modify the contents of the document by operations other than those
%        controlled by bits 6[0x0020], 9[0x0100], and 11[0x0400].
% 0x0010 (Revision 2) Copy or otherwise extract text and graphics from the
%        document, including extracting text and graphics (in support of
%        accessibility to disabled users or for other purposes).
%        (Revision 3) Copy or otherwise extract text and grphics from the
%        document by operations other than that controlled by bit 10[0x0200].
% 0x0020 Add or modify text annotations, fill in interactive form fields,
%        and, if bit 4[0x0008] is also set, create or modify interactive
%        form fields (including signature fields).
%
% (Revision 3 only)
% 0x0100 Fill in existing interactive form fields (including signature
%        fields), even if bit 6 is clear.
% 0x0200 Extract text and graphics (in support of accessibility to disabled
%        users or for other purposes).
% 0x0400 Assemble the document (insert, rotate, or delete pages and create
%        bookmarks or thumbnail images), even if bit 4 is clear.
% 0x0800 Print the document to a representation from which a faithful digital
%        copy of the PDF content could be generated. When this bit is clear
%        (and bit 3 is set), printing is limited to a low-level representation
%        of the appearance, possibly of degraded quality.

기본값은 P 0x003C인데, 이것은 40비트 보안수준에 해당하는 값들을 모두 더한 것이다. 이 가운데 0x0010(Copy and Extract)만 허용하지 않으려면 기본값인 0x003C에서 0x0010을 빼주면 된다.
#> dvipdfmx -S -P 0x002C foo
패스워드를 두 번씩 두 번 묻는데, 두번째(즉 세번째) 묻는 User Password를 지정하지 않으면 문서를 열 때 패스워드를 묻지 않게 할 수 있다.

128비트 수준의 Revesion 3 보안 옵션을 이용하려면 다음과 같이 된다.
#> dvipdfmx -K 128 -S -P 0x0D00 foo
프린트는 허용하면서 오로지 본문 복사/추출만 방지하려면 다음과 같이 한다.
#> dvipdfmx -K 128 -S -P 0x082C foo

^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2008-01-09 03:59:57
Processing time 0.0292 sec