THE CONTENT OF THIS PAGE IS ADDED TO THE CORE DOCUMENTATION AND WILL BE DISPLAYED THERE IN THE NEXT UPDATE
do not edit this page any more
2005/08/19 HvdL
Why you would want too encrypt pdf (from fop documentation)
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>