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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to