cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@odoko.co.uk>
Subject Re: SV: Antwort: SV: PDF Encryption and Cocoon
Date Fri, 19 Aug 2005 13:22:13 GMT
Tommy Skarateppen wrote:
> Thank you Holger!
> This was exactly what I was looking for!

This really should be in the FOP serializer documentation 
(http://cocoon.apache.org/2.1/userdocs/serializers/pdf-serializer.html), 
anyone feel like creating a patch to the source file in 
src/documentation/xdocs/userdocs/serializers/pdf-serializer.xml?

Regards, Upayavira


> -----Opprinnelig melding-----
> Fra: holger.willenborg@armacell.com [mailto:holger.willenborg@armacell.com] 
> Sendt: 19. august 2005 15:06
> Til: users@cocoon.apache.org
> Emne: Antwort: SV: PDF Encryption and Cocoon
> 
> 
> 
> http://wiki.apache.org/cocoon/FOPPDFEncryption?highlight=%28FOP%29 
> 
> HTH 
> Holger 
> 
> users-return-81721-holger.willenborg=armacell.com@cocoon.apache.org schrieb
> am 19.08.2005 14:20:05:
> 
> 
>>Thanks for your reply, Upayavira.
>>
>>I don't think it's possible to put those options in the user config file.
> 
> At
> 
>>least as far as I understand the FOP documentation:
>>http://xml.apache.org/fop/configuration.html Only 4 options are allowed in
>>the user config file, and none of these are of any help for me.
>>
>>-tommy
>>
>>
>>>-----Opprinnelig melding-----
>>>Fra: Upayavira [mailto:uv@odoko.co.uk] 
>>>Sendt: 18. august 2005 17:44
>>>Til: users@cocoon.apache.org
>>>Emne: Re: PDF Encryption and Cocoon
>>>
>>>
>>>Tommy Skarateppen wrote:
>>>
>>>>Hi,
>>>>I'm using cocoon for transformation of xml to both html and pdf. I 
>>>>understand that cocoon is using the FOP processor and I want to 
>>>>protect my PDF files by disallow printing/editing/copying. FOP 
>>>>supports encryption of PDF output, and in the FOP documentation, it 
>>>>says I can send parameters to the FOP processor (-noprint, -nocopy 
>>>>etc). Does anyone know how I can solve this in Cocoon?
>>>
>>>Dunno if this helps, but look in your root sitemap.xmap file. 
>>>In there, 
>>>you'll find the definitoon of the FOP serializer. Something like:
>>>
>>>     <map:serializer name="fo2pdf" logger="sitemap.serializer.fo2pdf" 
>>>src="org.apache.cocoon.serialization.FOPSerializer" 
>>>mime-type="application/pdf">
>>>       <!-- This element specifies URL to FOP user configuration 
>>
>>file. >             It can be absolute file URL or relative to the 
>>
>>>servlet context. >             Examples: > >        <user-
>>
>>config>file:/C:/cocoon/fop-config.xml</user-config> >        <user-
>>config>WEB-INF/fop-config.xml</user-config> >        -->
>>
>>>       <!-- Should serializer set content length header or not? > 
>>
>>Default is true. >        <set-content-length>true</set-content-
>>length> >        -->
>>
>>>     </map:serializer>
>>>
>>>Note, in there, you can specify a FOP configuration file. 
>>>Would this be 
>>>the place that you configure those options?
>>>
>>>If you want to be able to produce some stuff that is -noprint 
>>>and some 
>>>stuff that isn't, just define two serializers, with different configs.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message