Thomas - very kind of you to answer - thank you - I am happy now -
please see attached for how I solved my problem.

I was very impressed with batik rendering the encoded image
when this is nested in an existing svg file :)

Hopefully when I try to render rotated text this will now be working as well -
my next task.

Thanks for Batik

According to Thomas E Deweese on Tue, Jul 23, 2002 at 07:36:26AM -0400:
> >>>>> "ES" == Eric Smith <[EMAIL PROTECTED]> writes:
> 
> ES> [ no response in batik-users so desperately posting in dev ]
> 
>     Sorry, most of the Batik team was at SVG Open, then the SVG
> working group meeting.
> 
> ES> I followed the instructions in the Pawson fop faq as follows:
> ES> <image width="170" height="109"
> ES> xlink:href="data:image/jpeg;base64,R0lGO...
> 
>     This looks fine to me.
> 
> ES> This renders perfectly in a browser but fails when I try to render
> ES> with fop, see below.
> 
>     When you use the browser I take it that is from a Batik download
> or are you using the Batik jar included with FOP?
> 
> ES> java.lang.ExceptionInInitializerError at
> ES> 
>org.apache.batik.ext.awt.image.spi.ImageTagRegistry.getRegistry(ImageTagRegistry.java:218)
> 
>     This file does not seem to come close to matching what is in Batik
> right now.  So I am unsure about what the problem is. It appears that
> there is something wrong in the bootstrap of the Raster Image handler
> infrastructure.  However since I don't recall ever encountering/fixing
> such a bug in Batik I'm tending to suspect some sort of packaging bug.
> 
>     If at all possible you might try and see if a newer version of FOP
> might reference a newer version of Batik (CVS?).
> 
>     You might also ask on one of the FOP dev lists.


-- 
Eric Smith
--- Begin Message ---
A combination of j2re1.4.1 and _not_ using my desired java option
of -Djava.awt.headless=true results in  standard and encoded raster graphic
svg's successfully rendered to pdf .

Also embedding an encoded grapic as an image node in an existing svg file
renders fine with fop.

fop rocks :)

PS Instead of the headless command option, I just pointed the
(headless) server's DISPLAY option to a machine with a valid display -
suboptimal but it works.

According to Eric Smith on Mon, Jul 22, 2002 at 12:48:32AM +0200:
> According to Oleg Tkachenko on Mon, Jul 22, 2002 at 12:41:02AM +0300:
> > Eric Smith wrote:
> > >I am getting the following _fop_ error using fop 0.20.3 and batik 
> > >1.5beta2-1 I get this but only when
> > >compiling svg's (not raster graphics):
> > fop is rather picky about batik version and it is supposed to run with 
> > batik library that is included into fop distribution. If you really need 
> > batik 1.5beta2, upgrade to fop 0.20.4.
> > 
> Thank Oleg
> 
> Now with the 0.20.4 fop version (used the batik in the same package), I can render 
> fo to pdf fine, but with svg's, get this new error:
> ....
> [INFO] [1]
> Exception in thread "main" java.lang.ExceptionInInitializerError
>         at org.apache.batik.ext.awt.image.spi.ImageTagRegistry.getRegistry(Unknown 
>Source)
>         at 
>org.apache.batik.bridge.SVGImageElementBridge.createRasterImageNode(Unknown Source)
>         at org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(Unknown 
>Source)
>         at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
>         at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
>         at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
>         at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
>         at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
>         at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown Source)
>         at org.apache.fop.render.pdf.PDFRenderer.drawImageScaled(Unknown Source)
>         at org.apache.fop.render.AbstractRenderer.renderImageArea(Unknown Source)
> > -- 
> > Oleg Tkachenko
> > Multiconn International, Israel

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

Reply via email to