« 2007年12月11日 | メイン | 2007年12月13日 »

2007年12月12日

PDF のアクセス権限

PDF は権限パスワード(オーナーパスワード)を設定する際に閲覧者に与える操作の許可を設定することが可能です。PDF の仕様では、このパスワードによる操作の許可が、以下のフラグセット(「User access permissions」)により決められています。

BIT POSITIONMEANING
1-2Reserved; must be 0.
3(Revision 2) Print the document.
(Revision 3 or greater) Print the document (possibly not at the highest quality level, depending on whether bit 12 is also set).
4Modify the contents of the document by operations other than those controlled by bits 6, 9, and 11.
5(Revision 2) Copy or otherwise extract text and graphics from the document, including extracting text and graphics (in support of accessibility to users with disabilities or for other purposes).
(Revision 3 or greater) Copy or otherwise extract text and graphics from the document by operations other than that controlled by bit 10.
6Add or modify text annotations, fill in interactive form fields, and, if bit 4 is also set, create or modify interactive form fields (including signature fields).
7-8Reserved; must be 1.
9(Revision 3 or greater) Fill in existing interactive form fields (including signature fields), even if bit 6 is clear.
10(Revision 3 or greater) Extract text and graphics (in support of accessibility to users with disabilities or for other purposes).
11(Revision 3 or greater) Assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if bit 4 is clear.
12(Revision 3 or greater) 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. (See implementation note 25 in Appendix H.)
13-32(Revision 3 or greater) Reserved; must be 1.
(PDF Reference, version 1.7 より抜粋)

さて、Acrobat 8 Pro で「Acrobat 5.0 およびそれ以降」のセキュリティ設定を行った場合にどのフラグがセットされるのかを実際に調べてみました。
※ 現在、「Acrobat 5.0 およびそれ以降」でセキュリティ設定を行うと、8bit の設定が可能な「Revision 3」が使用可能となります。

Acrobat 8 Pro の GUI で表示される項目BIT POSITION
変更を許可印刷を許可テキスト、画像、およびその他の内容のコピーを有効にするスクリーンリーダーデバイスのテキストアクセスを有効にする121110987654321
許可しない許可しない--000011000000
許可しない低解像度(150 dpi)--000011000100
許可しない高解像度--100011000100
ページの挿入、削除、回転許可しない--010011000000
フォームフィールドの入力と既存の署名フィールドに署名許可しない--000111000000
注釈の作成、フォームフィールドの入力と既存の署名フィールドに署名許可しない--000111100000
ページの抽出を除くすべての操作許可しない--000111101000
許可しない許可しないON(自動的に ON)001011010000
許可しない許可しない-ON001011000000

Antenna House PDF Driver のセキュリティ設定には、「変更を許可」に「すべての操作を許可」という項目があります。これは「印刷」の許可設定のみを行いたい場合に用意したものですが、Acrobat にはそれに対応する項目が用意されていません。そのためか、Acrobat でその設定がされた PDF を開くと「変更を許可」が「ページの抽出を除くすべての操作」となってしまいます。

投票をお願いいたします

投稿者 numata : 08:00 | コメント (0) | トラックバック