Hi there,
We are seeing issue related to file size for EMF to SVG converted file compared to EMF to PNG converted file. Could you please check and let us know.
Code Snippet :
String dataDir = “C:\emf-with-svg-content\”;
Image image = Image.load(dataDir + “image9.emf”, new MetafileLoadOptions(true));
try {
// Create an instance of EmfRasterizationOptions class and set
// different options
final EmfRasterizationOptions emfRasterizationOptions = new EmfRasterizationOptions();
emfRasterizationOptions.setPageWidth(image.getWidth());
emfRasterizationOptions.setPageHeight(image.getHeight());
// call the save method and pass instance of SvgOptions class to
// convert it to SVG format.
image.save(dataDir + "image9.svg", new SvgOptions() {
{
setVectorRasterizationOptions(emfRasterizationOptions);
}
});
} finally {
image.dispose();
}
Thanks,
Ganesh
EMF’s size.zip (1.6 MB)