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

Free Support Forum - aspose.com

Status of SVG import as vectorial image

Hello,

When I read this one, I understand that it should be possible to import a SVG image as a vector image. However, I can’t manage to do so. I always get a rasterized bitmap image.
For instance, the following code
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape shape = builder.insertImage(“sample.svg”);
String imageType = ImageType.getName(shape.getImageData().getImageType());
sets the value of imageType to “PNG”. I would like to get “EMF”.
Is this possible ? What should I do to get a vector image ?
I’m using Aspose.Words for Java 15.11.0.

Thank you

Hi Laurent,


Thanks for your inquiry. Could you please attach your Svg here for testing? We will investigate the issue on our side and provide you more information.

Hi Tarir,

My question relates to any SVG file and is relatively independent of its content (as far as it is some vector content). I join a sample SVG file however.

Thank you by advance

Hi Laurent,


Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSJAVA-1241. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSJAVA-1241) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.