Kevin Lindsey wrote:
From: "Thomas DeWeese"


AFAIK, I'm catching all exceptions and none of them are firing and the
transformed document is generated correctly, minus the blank preview.

Not all errors are communicated using exceptions. Non-fatal errors are sent to the Transcoders ErrorHandler. By default it writes these to System.err - in Tomcat this probably goes to some error log or

something...


It looks like all of the Tomcat log files are clean (no errors messages to
be found).


Can you provide sample 'transformed' content?


Due to NDA's, I cannot, but the file is quite simple.  Here is a mock-up of
what I'm generating:

<?xml version="1.0" encoding="utf-8"?>
<svg xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns="http://www.w3.org/2000/svg";>

No width/height? Hmm might try setting it. Also you might try not generating indexed PNG's (I think it should work but I don't think it's used very heavily) - Or try generating some other format - JPEG, TIFF...

Also you might try printing/dumping the output of 'toString' on a bunch of
the DOM nodes in this SVGDocument - you should get things like:
batik.dom.svg.SVGOMSVGElement, batik.dom.svg.SVGOMGElement,
batik.dom.svg.SVGOMPathElement, ... if instead you get
batik.dom.GenericElement then you definately have a namespace/config

issue.


Yep, I'm getting SVGOM* elements.

Well I'm running out of ideas here, it sounds like everything is Ok up to the transcode. You might try pulling to code out of Tomcat and sending the document to the JSVGCanvas just to see it that works...

  You could also either step through or add annotations to the
rendering processes in the Batik GraphicsNodes (basically add
a println to the 'paint/primitivePaint' methods of the various
classes in 'batik.gvt').

This really is a new one....



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



Reply via email to