Questions tagged [batik]

Batik is a Java-based toolkit for applications or applets that want to use images in the Scalable Vector Graphics (SVG) format for various purposes, such as display, generation or manipulation.

Apache Batik is a Java-based toolkit for applications or applets that want to use images in the Scalable Vector Graphics (SVG) format for various purposes, such as display, generation or manipulation.

The project’s ambition is to give developers a set of core modules that can be used together or individually to support specific SVG solutions. Examples of modules are the SVG Parser, the SVG Generator and the SVG DOM. Another ambition for the Batik project is to make it highly extensible —for example, Batik allows the developer to handle custom SVG elements. Even though the goal of the project is to provide a set of core modules, one of the deliverables is a full fledged SVG browser implementation which validates the various modules and their inter-operability.

The Batik toolkit includes the following:

Modules:

  • An SVG DOM implementation
  • A set of SVG microsyntax parsers
  • A scripting module
  • A generator that creates an SVG document from Java2D calls
  • A Swing SVG component
  • A transcoder module

Tools and applications:

  • Squiggle, an SVG browser
  • An SVG rasterizer
  • A to SVG converter
  • A pretty printer for SVG source files

Official Website: http://xmlgraphics.apache.org/batik/

Useful Links:

367 questions
0
votes
0 answers

Trouble passing SVG variable through Coldfusion to Batik transcoder

There's something which I do not understand going on between getting the SVG code from the SQL table and passing it into Batik to transcode it (displaying the PNG). If I run the CF code below I get an error: The image cannot be displayed because it…
MikeW
  • 319
  • 3
  • 8
0
votes
2 answers

Can't find the source of an exception in Java

Basically an exception is being thrown and I can't find the reason. Here is what I get on the console: Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0 at…
Invader Zim
  • 636
  • 12
  • 36
0
votes
1 answer

Seeing pixels of a SVG file when scaling in Java

I am handling a SVG file in Java using Batik library. The problem occurs when i scale it. I can see pixels of lines. Off course this should not happen, i should be able to zoom at least about 4000% and maintain the smoothness. SVG file is read from…
Invader Zim
  • 636
  • 12
  • 36
0
votes
1 answer

Batik 1.7 gives Headless mode exception : NoClassDefFoundError: gnu/java/awt/peer/headless/HeadlessToolkit

I am implementing Batik-1.7 with transcoder.so it is giving error that: error: java.lang.NoClassDefFoundError: gnu/java/awt/peer/headless/HeadlessToolkit can anyone please suggest me how to use trancoder in headless mode... thanks,
Asha Koshti
  • 2,412
  • 4
  • 20
  • 30
0
votes
1 answer

Placing an object at a specific percentage along an svg path?

Currently I'm using the element to very quickly animate an object (defined by a path) to the correct end location. This is displaying ok in Chrome and I'm not working on getting it working with Batik. But I'm curious: is there a…
Robert
  • 237
  • 3
  • 12
-1
votes
1 answer

SVG image within a Batik JSVGCanvas is scaled down after rotation and setting bounding box

I have a problem with the rotation within a JSVGCanvas. The user can load SVG images into a document page (JLayeredPane). Every image displays in his own JSVGCanvas and has his own class. The user can resize the image by dragging the endpoints and…
SKH
  • 1
  • 4
-2
votes
1 answer

Reading SVG path in Java

I'm reading text files in java where I use the scanner class to read text in SVG format. I have seen answers that recommend Batik. I would like to know how to use Batik only on the path data in SVG format. I want to evaluate the path and extract…
the_ritz
  • 282
  • 1
  • 14
1 2 3
24
25