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:

391 questions
0
votes
1 answer

JSVGCavas BridgeUserAgent displayError() override

I've met a problem and I've been struggling last 2 days. I have a compiled program that runs some simulations and visualizes the results in an SVG file. The file is replaced every 2 seconds with a new one, until the simulation is done. Wanting to…
electrique
  • 431
  • 6
  • 18
0
votes
0 answers

Batik rasterizer UTF-8 Error

I'm trying Batik's rasterizer and everything is working fine. This is the Java line I'm running to convert the svg to a png : java -jar batik-rasterizer.jar -m image/png samples/barChart.svg And this is the content of the SVG…
LatinCanuck
  • 454
  • 2
  • 10
  • 29
0
votes
2 answers

Batik Rasterizer logo watermark remove from genereated image

Anyone know how to remove the Batik logo from the generated images? I'm trying the examples on their page http://xmlgraphics.apache.org/batik/tools/rasterizer.html This is the source svg image…
LatinCanuck
  • 454
  • 2
  • 10
  • 29
0
votes
1 answer

convert jpeg/png to tiff in java

I am using batik library for image conversion , I need to convert jpeg/png to tiff format. Can anyone help me on how to do the conversion using batik (preferable) , because i am using the same library for other SVG conversions.
paddhureddy
  • 113
  • 1
  • 8
0
votes
1 answer

Embedding an SVG document inside an SVG document, but maintaining accessibility

I need to include an SVG document (actually 3) inside another SVG document for the purpose of scrolling the embedded SVG document. I use a Batik JSVGCanvas to display it inside a Java application. Since putting that canvas into a JScrollPane and…
radlan
  • 2,393
  • 4
  • 33
  • 53
0
votes
1 answer

Batik svg conversion upon click event

I have a simple webpage with an editable .svg image preview which includes some text, which the user can enter via a standard html form. When they're happy and want to continue to the next step, they click the save button. Theoretically the image…
decbrad
  • 191
  • 5
  • 15
0
votes
1 answer

Netbeans doesn't recognize xercesimpl

I am trying to build a plugin for netbeans using maven and for some reason Netbeans doesn't recognize xercesimpl.jar packaged with the plugin. Here is the stacktrace I see. java.io.IOException: SAX2 driver class org.apache.xerces.parsers.SAXParser…
ShaggyInjun
  • 2,880
  • 2
  • 31
  • 52
0
votes
1 answer

Adding a JfreeChart to SVG Image

I have a SVG image (a Map of a country) and I am trying to add a JfreeChart on top of it which would show 3d Bars on particular locations. Can someone please help point out how do i add a JfreeChart to an existing SVG image. Following is the code so…
Amit
  • 143
  • 1
  • 14
0
votes
1 answer

Interactive SVG - how to choose element to react on mouseover action?

I am trying to make an interactive SVG that would react on different user actions (mouse over, click etc.). I am using java Batik, but it will be enough, if you just describe me how to approach my problem in XML. Clicking function works for me just…
Smajl
  • 7,555
  • 29
  • 108
  • 179
0
votes
1 answer

Writing unicode characters with Batik doesn't work

I am writing a project with Batik, which is for multi-language image. Therefore I need signs like "sigma" or "alpha". I have to write the character as text - not as a polygon or as a glyph - because it has to be written by my project again. If I…
Luke
  • 1
  • 1
0
votes
2 answers

Highchart / Easyphp / Batik

I'm running both OS : mac os X and windows xp. On mac os X, i'm running MAMP and I used the solution Batik to export my chart (highchart) on my own server. Everything is doing well. On windows xp, I'm running Easyphp. Unfortunately, I'm not able to…
megahigh
  • 11
  • 1
0
votes
1 answer

Converting SVG with parameters to another file type?

on my website, I have an SVG image which is generated using parameters from a form that a user selects. All works fine, but I'm struggling to think of a way to do the next part. Once the user is finished, they click a button... I want this button to…
user1952067
  • 97
  • 1
  • 8
0
votes
3 answers

java.lang.NoClassDefFoundError while reading a svg file as BufferedImage

i have a .svg file to create a Map which will have Listeners relevant to boundaries (i guess its called "nodes" of a scalable vector graphic). However, i'm trying to add this file as a BufferedImage over a JPanel. (i'm a newbie about swing…
quartaela
  • 2,579
  • 16
  • 63
  • 99
0
votes
1 answer

Why does Batik dislike the "d" attribute in my SVG image?

My simple SVG image (below) seems to work in some applications, but not others. In a Java/Batik app, for instance, complains that - 'The attribute "d" of the element is invalid.' Can anyone see what part of the "d" attribute Batik would…
0
votes
1 answer

Checking SVG Upload using Batik

I try to examine uploaded SVG graphics and look for image elements to read there href attribute. I am using Batik 1.7 to search for corresponding elements. By using 'getElementsByTagName' / 'getElementsByTagNameNS' I only get an empty list. Here is…
Franatique
  • 75
  • 1
  • 4