Previous Next


                                                       135
         SECTION 3.5                                                                     Encryption



KEY                TYPE         VALUE

EncryptMetadata    boolean      (Optional; used only by crypt filters that are referenced from StmF in an encryp-
                                tion dictionary) Indicates whether the document-level metadata stream (see
                                Section 10.2.2, “Metadata Streams”) is to be encrypted. PDF consumer appli-
                                cations should respect this value when determining whether metadata should
                                be encrypted; see implementation note 32 in Appendix H.
                                Default value: true.

         Example 3.12 shows the use of crypt filters in an encrypted document containing
         a plaintext document-level metadata stream. The metadata stream is left as is by
         applying the Identity crypt filter. The remaining streams and strings are
         decrypted using the default filters.

         Example 3.12

            %PDF1.5
            1 0 obj                          % Document catalog
                << /Type /Catalog
                    /Pages 2 0 R
                    /Metadata 6 0 R
                >>
            endobj
            2 0 obj                          % Page tree
                << /Type /Pages
                    /Kids [3 0 R]
                    /Count 1
                >>
            endobj
            3 0 obj                          % 1s t page
                << /Type /Page
                    /Parent 2 0 R
                    /MediaBox [0 0 612 792]
                    /Contents 4 0 R
                >>
            endobj
            4 0 obj                          % Page contents
                << /Length 35 >>
                stream
                    *** Encrypted Page-marking operators ***
                endstream
            endobj

Previous Next