Skip to main content

All Questions

Tagged with
-2 votes
0 answers
54 views

JavaFX node to PDF using SVG? [closed]

Edited to hopefully now meet StackOverflow guidelines. Possible duplicate of How can I export a JavaFX node to an SVG image? I am trying to get a rather complicated tree chart JavaFX node onto a PDF ...
Sarah's user avatar
  • 63
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
16 views

why the style error and chinese is not display when i use itext7 pdfhtml java lib translate svg to pdf

Initially, I utilized an SVG as a background image in the CSS of my HTML file and attempted to convert it to PDF using HtmlConvert.convertToPdf. However, my SVG images are experiencing styling issues ...
李当心'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
20 views

How can I use an SVG vector drawable (XML) as an Icon for NotificationCompat.Builder().setSmallIcon(Icon icon)

I have an SVG vector drawable button.xml that I want to use as an Icon for a notification builder in either of the setSmallIcons .. new NotificationCompat.Builder(this, "arbitrary") ...
user avatar
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
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
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
0 votes
1 answer
77 views

Changing color when rendering SVG in PDFBox

Does anybody know how to change color when rendering SVG into PDF with pdfbox ? I am using following code: File svgFile = new File("roots.svg"); SVGUniverse svgUniverse = new SVGUniverse(); ...
ChristophDaniel's user avatar
1 vote
0 answers
33 views

SVG files are nested with a large number of<use>tags, resulting in rendering errors

I have an SVG file with a lot of nesting inside it. So although the file size is small, a lot of memory is used when rendering. Want to know how to use Java to distinguish this type of SVG file from ...
Chiaki's user avatar
  • 11
0 votes
1 answer
106 views

Icon generator from SVG missing in Vaadin documentation

There was a generator (tool) on Vaadin doc page: https://vaadin.com/docs/latest/components/icons#icon-set-generator that created or converted the JS file from a SVG input. The link to the tool has ...
Deep Zajac's user avatar
0 votes
1 answer
100 views

PNG to SVG Convertion - Invalid byte 1 of 1-byte UTF-8 sequence

I am trying like this: public class ImageToSVGConverterTool { public static void main(String[] args) { String inputImagePath = "C:\\Users\\path\\facebook.png"; // Replace with ...
Sun's user avatar
  • 3,494
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
1 vote
2 answers
33 views

How to click on the X element to close the email subscription popup

I'm trying to close this email subscription popup by clicking on the X. I tried using xpath to select it but I've been unsuccessful. Code trial: driver.findElement(By.xpath("/html/body/div[27]/...
zjboris's user avatar
  • 27

15 30 50 per page
1
2 3 4 5
42