Hello @atir.tahir
Please let us know is there any update on this SVG to image conversion issue
We anticipate resolving this issue by the end of June 2023. We will keep you informed of any additional updates or progress.
Hi @atir.tahir, if we try to update any version above 22.8.1 we are getting error like. → class com.groupdocs.conversion.legacy.exceptions.GroupDocsException: class com.groupdocs.conversion.internal.c.a.i.coreexceptions.c: Invalid license signature. Please make sure the license file was not modified.
com.groupdocs.conversion.internal.c.a.i.License$a.a(Unknown Source)
com.groupdocs.conversion.internal.c.a.i.License.setLicense(Unknown Source)
com.groupdocs.conversion.internal.c.g.f.l.aspose.a.ED(Unknown Source)
com.groupdocs.conversion.internal.c.g.f.l.aspose.a.L(Unknown Source)
com.groupdocs.conversion.internal.c.g.f.common.d.zZE(Unknown Source)
can you please suggest how we solve this issue?
Thank You!
Could you please share your license/subscription expiry date and the sample conversion code?
@atir.tahir
I have shared our license/subscription expiry date and the sample conversion code below please check.
Summary
20240811
3.0
We tried to convert the provided SVG to JPG using following Java code: →
//Java code
//specify output folder
String outputFolder = “D:/”;
//specify output file template
String outputFileTemplate = new File(outputFolder, “converted-page-%d.jpg”).getPath();
try (FileOutputStream getPageStream = new FileOutputStream(String.format(outputFileTemplate, 1))) {
//pass the SVG file to the Converter class
Converter converter = new Converter(“D:/input.svg”);
ImageConvertOptions options = new ImageConvertOptions();
//set image type
options.setFormat(ImageFileType.Jpg);
options.setPagesCount(1);
converter.convert(getPageStream, options);
} catch (IOException e) {
System.out.println(e.getMessage());
}
Thanks!
Could you please also share the license file and the SVG in a private message? Also specify if you are using any other API within the application (e.g. any other Aspose API).
Hi @atir.tahir,
After upgrade facing one small issue apart from this rest is working fine
“setFontDirectories() has private access in com.groupdocs.conversion.ConverterSettings”
Can you please suggest me how to set custom fonts?
Thank you!