We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Square gains border when converting SVG to PDF using Aspose.Imaging for Java

Using aspose-imaging-18.11-jdk16 to convert SVG to PDF.
Converting SVG to PDF, a square graphic element gets a border. Also the colours seem to be a bit darker.

Code below:
LoadOptions options = new SvgLoadOptions();
Document pdfDocument = new Document(inputPath, options);
pdfDocument.save(outputPath, SaveFormat.Pdf);

Before/after sample attached:
boxGetsBorder.zip (1.7 KB)


I have worked with issue shared by you and have been able to observe. An issue with ID IMAGINGJAVA-1149 has been created in our issue tracking system to investigate and resolve the issue. This thread has been linked with these issues so that you may be automatically notified once the issues will be resolved.

The issues you have found earlier (filed as IMAGINGJAVA-1149) have been fixed in this update.