Hello. I followed an example but it didnt work for me. I am trying to convert a xls file to svg but the svg image file ends up blank. Also I whant to convert into a single svg file and not one svg per sheet. Here is my code:
Hi,
Hello, thanks for the quick reply. I had tried that, but these errors occured:
Hi,
Hi,
Well, we do not support to save the whole workbook to SVG file. We support to save
the whole workbook to a tiff file using workbookRender.toImage API.
Please use the following sample code:
e.g
Sample code:
<span style=“font-family:“Calibri”,“sans-serif”;color:black”>
Workbook wb = new Workbook(srcFile);<o:p></o:p>
<span style=“font-family:“Calibri”,“sans-serif”;color:black”>
ImageOrPrintOptions options = new ImageOrPrintOptions();<o:p></o:p>
<span style=“font-family:“Calibri”,“sans-serif”;color:black”>
options.setImageFormat(ImageFormat.getTiff());<o:p></o:p>
<span style=“font-family:“Calibri”,“sans-serif”;color:black”>
WorkbookRender wbRender = new WorkbookRender(wb, options);<o:p></o:p>
<span style=“font-family:“Calibri”,“sans-serif”;color:black”>
wbRender.toImage(outFile.tiff);<o:p></o:p>
By the way, please do not forget to add the external jar (JAI jar(s)).
Thank you.