svgSalamander is a Java-based toolkit for manipulating SVG
Questions tagged [svg-salamander]
14 questions
7
votes
2 answers
Can i use SVG Salamander to rasterize SVGs into PNG files?
I have seen it cause SVG-Salamander is small enough to my projects. But I don't know if i can use it for that neither how to do it.
I've use this code :
public static void main(String[] args) throws IOException, SVGException {
// TODO…

A.Quiroga
- 5,704
- 6
- 37
- 58
7
votes
2 answers
SVG Salamander example?
I'm toying with Java and SVG Salamander but can't quite get how to render a simple SVG file into a JPanel.
Could someone give me a brief example? Tried to follow the loose tutorial in the official site, but could not find a simple code to get a…

Gabriel
- 5,453
- 14
- 63
- 92
2
votes
1 answer
SVG to Image Using SVGSalamander not rendering SVG correctly
I have worked for SVG image rendering for iText PDF document.
to do this i used SVGSalamander for convert SVG to image format.
it works fine but it has a strange behavior that some of the SVG images are not rendering correctly while some are…

Thilina Dinith Fonseka
- 585
- 2
- 8
- 23
2
votes
1 answer
Creating an SVGIcon using a valid svg xml with SVGSalamander
I have an .xml document which is a valid SVG image.
I want to load this icon with different colors. But I could not.
As a solution firstly I read an xml file as a string and replaced colors using simple String.replace()
Now I must create an SVGIcon…

bahtiyartan
- 1,010
- 10
- 29
1
vote
1 answer
How to rotate elements with SVG Salamander
I use SVG Salamander to display and manipulate SVG images in Java. I managed to change fill, stroke or text of elements and display the changes.
Now I want to rotate an element. So I tried to manipulate the transformation matrix:
SVGElement e =…

Mr. Clear
- 471
- 5
- 13
1
vote
1 answer
How to change text in Text element
I have this line in my SVG file:
2
I can get an object of Text class with this but I cant see any usable method for changing "2" to another number. The appendText method seems to do…

Houp
- 101
- 4
1
vote
0 answers
SVG Salamander image
I have been trying to process and rasterize an svg file using SVG Salamander & Java during the last couple of days and just can't get it to work.
Here is my SVG file, which is generated by Adobe Illustrator. It basically contains some random text,…

user1774249
- 73
- 2
- 6
0
votes
1 answer
Anyone found a way to center a JScollPane on an svgSalamander ShapeElement?
I've got a JPanel which renders an SVGDiagram, set as the viewport view of a JScrollPane. The scrollpane seems to work OK, and I can zoom in and out of the diagram, too; and given a MouseEvent, I can find nearby SVGElements using the "pick"…

JimmyTheSnout
- 16
- 1
0
votes
0 answers
Empty PDF using XChart ChartPie as SVG ressource with PDFBoxGraphics2D and Salamander
I've been trying to compose a pie chart using XChart then vectorising it to SVG format to use it in a PDF built with PDFBox.
To do that, I use:
XChart for the pie chart building and vectorising it ;
SVGSalamender for the Graphics2D building based…

user2428061
- 11
- 2
0
votes
1 answer
Clear text on SVG text
I am working with a java project, which it uses an SVG element from SVG Salamander lib and this element uses a Text form. The program writes on the text when a device is disconnected, using Text.append() the following legend is added
No Data from…

Eliotkuri
- 3
- 2
0
votes
1 answer
Java SVG Salamander lineargradient not showing
I am using SVG Salamander in an application, I've generated the SVG but when it is rendered the 'linearGradients' are not showing and the contents of the elements is just solid black.
If I take the SVG that is generated and open it in Firefox…

SPlatten
- 5,334
- 11
- 57
- 128
0
votes
1 answer
SVG Animation with SVG Salamander (Java 1.8)
I'm using SVG Salamander and Java(1.8). How should I animate the SVG image?
The loaded .svg file already contains the animations. I think I need to update somehow the image, but how?
I heard you can animate each DOM element through SVGUniverse. But…

Hehe Muha
- 19
- 6
0
votes
1 answer
SVG Circle Resolution in Java
I have a circle represented in SVG by :
I then convert this circle to a BufferedImage in Java with width and height = 100 and imageType =…

Vinc
- 695
- 2
- 10
- 26
-1
votes
1 answer
Java application JFrame with SVG Salamander not visibile
I want to display my SVG document in the main frame of a Java application.
mframe = new JFrame();
mframe.setBackground(Color.BLACK);
mframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
…

SPlatten
- 5,334
- 11
- 57
- 128