You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by da...@cocoon.zones.apache.org on 2006/10/02 17:44:58 UTC
[DAISY] Updated: PDF Encryption
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:
--- <html><body><p>TODO</p></body></html>
+++ <html>
+++ <body>
+++
+++ <h1>PDF encryption</h1>
+++
+++ <p>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.</p>
+++
+++ <h2>How to encrypt pdf</h2>
+++
+++ <p>First install an encryption provider as described in the fop documentation.
+++ </p>
+++
+++ <p>You can configure the FOPSerializer like this (since 2.1.5-dev):</p>
+++
+++ <pre><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></pre>
+++
+++ </body>
+++ </html>