Skip to main content

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.

0 votes
1 answer
40 views

Batik creating blank svg on mac

I created a program to create a calendar as an svg image and it works just fine when I run it on windows, however when run on a mac it just creates an empty svg file. Can someone please help me figure ...
Noah Gaston's user avatar
0 votes
0 answers
27 views

Apache Batik Script Evaluation

I've created the following code as a test of Batik's Rhino integration: public class BatikTest { public static void main(String...args) throws SAXException, IOException, ...
Fernando Sanchez's user avatar
0 votes
0 answers
34 views

Batik won't load svg file

I am trying to load an svg file using batik and display it, but both methods that I have tried have given me different exceptions. I have included both of them in the following code. public static ...
Noah Gaston's user avatar
0 votes
0 answers
14 views

The package org.w3c.dom is accessible from more than one module

I'm using batik-all 1.9.1 with Java 8. I'm trying to update the project to Java 21, but I'm getting a "The package org.w3c.dom is accessible from more than one module" error that seems to ...
Mr Smith's user avatar
  • 3,436
0 votes
0 answers
22 views

Allow external resources in Apache Fop

We have upgraded from Apache Fop v2.3 to v2.9. In one template, we embed an image in a SVG in order to have round borders. <fo:block font-size="0pt" text-align="center" space-...
Jan's user avatar
  • 31
1 vote
0 answers
60 views

Batik issue in Converting WMF Images to SVG

I am trying to convert WMF Images to SVG using Batik in Java. Code: package org.example; import java.io.*; import org.apache.batik.transcoder.TranscoderException; import org.apache.batik.transcoder....
logesh ramasamy's user avatar
1 vote
0 answers
31 views

Apache Batik Java Swing, SVG not loading in the right way

So, I am doing a School project where we have to use Java Swing to create a game based on Travle, for the image of the map, I considered using a svg file so i could divide it by the layers, I then ...
Yeriis's user avatar
  • 11
1 vote
0 answers
92 views

Why does Batik provide incorrect SVG bounds?

I have an SVG which contains a little unnecessary "padding" (i.e. there's transparent pixels surrounding the image): <svg style="border: 1px dashed black" xmlns="http://www.w3.org/...
Cardinal System's user avatar
0 votes
1 answer
70 views

Use custom fonts when converting SVG to GraphicNode in Batik

I am trying to embed a SVG into a PDF using both Apache Batik and OpenPDF libraries in Java. For this purpose, following a tutorial, I need to create a GraphicsNode, that later will be converted into ...
King Midas's user avatar
  • 1,621
0 votes
0 answers
55 views

Use external stylesheet from resource with Batik in Java

I'm using Batik in Java to display and dynamically alter SVG. Say I have the following SVG: <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"> &...
Halvor Holsten Strand's user avatar
1 vote
1 answer
404 views

Batik Bridge 1.17 jar could not access external resource

I was using batik 1.16 in my project. There came a requirement to increase its version to 1.17. Actually while creating Document from SVG, we are loading a page from external resource, but Batik 1.17 ...
MANPREET KAUR's user avatar
0 votes
0 answers
37 views

Reuse element groups (that are other svg images) in batik generated svg

When generating svg with batik some elements are put in defs and reused. But in my case i have many element groups I could reuse that are actually other svg images drawn on screen eg: <g fill=&...
wadsok's user avatar
  • 1
0 votes
0 answers
152 views

How to set the SVG version in Apache Batik

Using Apache Batik to create SVG files, the version always comes out as "1.0" (seems to be hard coded) but Batik says it implements 1.1. How do I change the version, is it as simple as ...
Peter Hull's user avatar
  • 6,938
2 votes
0 answers
134 views

Java Swing HiDPI solution for icons - SVG and runtime scaling with Batik? Precompiled PNGs?

I want to make the graphics (icons, logo etc.) of an existing Java Swing application look better on HiDPI displays with a scale factor larger than 1.0, e.g. my notebook with 14" display and ...
MrSnrub's user avatar
  • 1,163
1 vote
1 answer
623 views

dependency conflicts with batik-transcoder and java 17

I'm trying to use the twelvemonkeys and batik to process svg files in java. <!-- https://mvnrepository.com/artifact/com.twelvemonkeys.imageio/imageio-batik --> <dependency> ...
Brett Sutton's user avatar
  • 4,391

15 30 50 per page
1
2 3 4 5
27