Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 26399 invoked from network); 2 Oct 2006 15:48:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Oct 2006 15:48:39 -0000 Received: (qmail 98401 invoked by uid 500); 2 Oct 2006 15:48:39 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 98382 invoked by uid 500); 2 Oct 2006 15:48:39 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@cocoon.apache.org List-Id: Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 98371 invoked by uid 99); 2 Oct 2006 15:48:39 -0000 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [207.7.158.203] (HELO cocoon.zones.apache.org) (207.7.158.203) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2006 08:48:39 -0700 Message-ID: <1407694.1159803898273.JavaMail.daisy@cocoon.zones.apache.org> Date: Mon, 2 Oct 2006 15:44:58 +0000 (GMT+00:00) From: daisy@cocoon.zones.apache.org To: docs@cocoon.apache.org Subject: [DAISY] Updated: PDF Encryption Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/1226.html Document ID: 1226 Branch: main Language: default Name: PDF Encryption (previously Encrypting documents) Document Type: Cocoon Document (unchanged) Updated on: 10/2/06 3:19:54 PM Updated by: Philippe Laplanche A new version has been created, state: draft Parts ===== Content ------- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 1055 bytes (previous version: 37 bytes) Content diff: ---

TODO

+++ +++ +++ +++

PDF encryption

+++ +++

FOP supports encryption of PDF output, thanks to Patrick C. Lankswert. This +++ feature is commonly used to prevent unauthorized viewing, printing, editing, +++ copying text from the document and doing annotations. It is also possible to ask +++ the user for a password in order to view the contents.

+++ +++

How to encrypt pdf

+++ +++

First install an encryption provider as described in the fop documentation. +++

+++ +++

You can configure the FOPSerializer like this (since 2.1.5-dev):

+++ +++
<map:serializer name="fo2pdf" src="org.apache.cocoon.serialization.FOPSerializer" mime-type="application/pdf">
+++   <renderer-config>
+++      <parameter name="ownerPassword" value="mypassword"/>
+++      <parameter name="allowCopyContent" value="FALSE"/>
+++      <parameter name="allowEditContent" value="FALSE"/>
+++      <parameter name="allowPrint" value="FALSE"/>
+++      <parameter name="allowEditAnnotations" value="FALSE"/>
+++   </renderer-config>
+++ </map:serializer>
+++ +++ +++