> I have an urgent problem with Fop.
> I am using Fop 0.18.1 and 0.19-CVS.
> The config option of fop let me choose which filters to apply to stream.
> It doesnt let me choose however to which stream to apply these filters.
> What I need is that my generated pdf files only contain encoded
> image streams.
> They especially should NOT contain encoded page content streams.
> Is there any way to achieve this with fop be it with configuration or
> hacking some source?
> Unfortunately I dont know the fop source very well.
> Any help on this matter is greatly appreciated.

This is something I'd like to see, too. I think this requires "hacking
some source". I don't have time to do right now, but I think I know what
you could do:

Look at org.apache.fop.pdf.PDFStream. It has a method
"addDefaultFilters()" where the filters specified in the configuration
get applied.

Then look at org.apache.fop.pdf.PDFXObject. I think this is the class
for images in PDF. The "output()" method calls
"imgStream.addDefaultFilters()" (the method above). So I think you just
have to copy the "addDefaultFilters()" method (ex. addImageFilters()) and
adjust it to read configuration using a different key (not
"stream-filter-list" but for example "image-stream-filter-list").

I may be wrong but I think that's what needs to be done. Hope it helps...

Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to