cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] CocoonUserGroupAustralia FOPPDFEncryption Thu Feb 26 23:00:03 2004
Date Thu, 26 Feb 2004 22:00:03 GMT
Page: http://wiki.cocoondev.org/Wiki.jsp?page=CocoonUserGroupAustralia , version: 11 on Thu
Feb 26 22:17:30 2004 by 210.11.144.50

+ 
+ From [Pinnacle software|http://www.pinnaclesoftware.com.au/] Canberra
- * [Pinnacle software(Canberra)|http://www.pinnaclesoftware.com.au/]\\
- 


Page: http://wiki.cocoondev.org/Wiki.jsp?page=FOPPDFEncryption , version: 1 on Thu Feb 26
21:28:52 2004 by TorstenCurdt

New page created:
+ First install an [encryption provider|http://www.bouncycastle.org/] as [described|http://xml.apache.org/fop/pdfencryption.html]
in the fop documentation.
+ 
+ You can either 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>
+ }}}
+ 
+ or you use an external user config file
+ 
+ {{{
+ <map:serializer name="fo2pdf"
+                 src="org.apache.cocoon.serialization.FOPSerializer"
+                 mime-type="application/pdf">
+   <user-config>D:/fop-fonts/config.xml</user-config>
+ </map:serializer>
+ }}}
+ 
+ which needs to look like this (untested!)
+ 
+ {{{
+ <configuration>
+   <entry>
+     <key>ownerPassword</key><value>mypassword</value>
+   </entry>
+   <entry>
+     <key>allowCopyContent</key><value>FALSE</value>
+   </entry>
+   <entry>
+     <key>allowEditContent</key><value>FALSE</value>
+   </entry>
+   <entry>
+     <key>allowPrint</key><value>FALSE</value>
+   </entry>
+   <entry>
+     <key>allowEditAnnotations</key><value>FALSE</value>
+   </entry>
+ </configuration>
+ }}}
+ 



Mime
View raw message