Here is an example of the start of the file: <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg width="48" height="48"> <circle cx="0" cy="0" r="1" fill="none"/> <circle cx="1" cy="0" r="1" fill="none"/> <circle cx="2" cy="0" r="1" fill="none"/> <circle cx="3" cy="0" r="1" fill="none"/> <circle cx="4" cy="0" r="1" fill="none"/> <circle cx="5" cy="0" r="1" fill="none"/> <circle cx="6" cy="0" r="1" fill="none"/> <circle cx="7" cy="0" r="1" fill="none"/> <circle cx="8" cy="0" r="1" fill="none"/> <circle cx="9" cy="0" r="1" fill="none"/> <circle cx="10" cy="0" r="1" fill="rgba(179,179,179,0.027451)"/> <circle cx="11" cy="0" r="1" fill="rgba(179,179,179,0.054902)"/>
It seems rgba is not being allowed by Batik? -Dave On Fri, Mar 29, 2013 at 12:08 PM, David Hoffer <dhoff...@gmail.com> wrote: > I'm new to Batik, trying to use it to convert SVG images to PNG. I'm > getting tons of the following types of errors. > > The attribute "fill" represents an invalid CSS value > ("rgba(238,238,238,0.996078 > )"). > Original message: > The "fill" property does not support function values. > > ***** CSSEngine: exception property.syntax.error:org.w3c.dom.DOMException: > The " > fill" property does not support function values. > > AttrValue:rgba(238,238,238,0.996078) > > Exception:org.w3c.dom.DOMException > org.w3c.dom.DOMException: The "fill" property does not support function > values. > at > org.apache.batik.css.engine.value.AbstractValueFactory.createInvalidL > exicalUnitDOMException(AbstractValueFactory.java:60) > > Any ideas what I'm doing wrong? >