xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S├ębastien Arbogast <sebastien.arbog...@gmail.com>
Subject SVG to PNG using Batik
Date Sun, 14 Aug 2005 14:40:24 GMT
Hi,

I'm a beginner with SVG format and I'm trying to create a SVG logo for
one of my development project. Here are the tools I'm using :
- Inkscape for SVG editing
- Maven for project management
- Batik via Maven Batik Plugin to generate PNG from SVG

But the problem is that when the transformation is run on a very
simple SVG image, here's what I obtain as an error :

C:\dev\workspace\schaman>maven batik:png
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2

build:start:

batik:png:
[java] About to transcode 1 SVG file(s)
[java]
[java] java.io.IOException: Document is invalid: no grammar found.
[java] at
org.apache.batik.dom.util.SAXDocumentFactory.createDocument(U
nknown Source)
[java] at
org.apache.batik.dom.util.SAXDocumentFactory.createDocument(U
nknown Source)
[java] at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument
(Unknown Source)
[java] at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument
(Unknown Source)
[java] at
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(U
nknown Source)
[java] at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(U
nknown Source)
[java] at
org.apache.batik.apps.rasterizer.SVGConverter.transcode(Unkno
wn Source)
[java] at
org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown
Source)
[java] at
org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)

[java] at org.apache.batik.apps.rasterizer.Main.main(Unknown
Source)
[java] org.apache.batik.transcoder.TranscoderException: null
[java] Enclosed Exception:
[java] Document is invalid: no grammar found.
[java] at
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(U
nknown Source)
[java] Converting logo-schaman.svg to
C:\dev\workspace\schaman\target\docs\i
mages\logo-schaman.png ... ... error
(SVGConverter.error.while.rasterizing.file)

[java] at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(U
nknown Source)
[java] at
org.apache.batik.apps.rasterizer.SVGConverter.transcode(Unkno
wn Source)
[java] at
org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown
Source)
[java] at
org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)

[java] at org.apache.batik.apps.rasterizer.Main.main(Unknown
Source)
BUILD SUCCESSFUL
Total time: 2 seconds

And I don't manage to get it working. I've tried to edit the same file
with Adobe Illustrator but I'm getting another obscure error.

What editor do you advise me to use or what should I change to get it
working ?

Thanks in advance.

 

--

S├ębastien Arbogast


Mime
View raw message