You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Stefan Kleineikenscheidt <st...@kleineikenscheidt.de> on 2009/06/12 16:12:57 UTC
PDFImageHandlerRegistry
Hi,
we are embedding FOP in a plugin for a web-application. The default
configuration process using the files under /META-INF/services for
both FOP and XML-graphics is not working in this scenario, so I went
ahead and did all the configuration by hand, however there is one
issue with the PDFImageHandlerRegistry which is held as a private
member of PDFRenderer and is not exposed.
What I need to do is to register some image handler, like this:
pdfImageHandlerRegistry.addHandler(new
org.apache.fop.render.pdf.PDFImageHandlerRawJPEG());
pdfImageHandlerRegistry.addHandler(new
org.apache.fop.render.pdf.PDFImageHandlerRawCCITTFax());
pdfImageHandlerRegistry.addHandler(new
org.apache.fop.render.pdf.PDFImageHandlerGraphics2D());
pdfImageHandlerRegistry.addHandler(new
org.apache.fop.render.pdf.PDFImageHandlerRenderedImage());
pdfImageHandlerRegistry.addHandler(new
org.apache.fop.render.pdf.PDFImageHandlerXML());
I am using reflection to work around this at the moment. But I just
want to check, whether there is a reason why PDFRenderer does not
expose its imageHandlerRegistry member? Or am I missing something?
Thanks for any information on this.
-Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org