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

Free Support Forum - aspose.com

Image size problem?

Hi ,

I am converting html to doc using Aspose.words for java( latest version 4.2 ). I cannot able to retain image size after conversion.

Here is my simple html :







after conversion i am getting only original image size . Why ? It is working well in Aspose 3.1.1.1 version only not on later version .

Do help me or suggest some snippet to solve this .

Regards,
Anbu Chezhian.S




Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. In height and width attributes of IMG tag, you cannot specify measurement units. Height and width can be specified in pixels (without any units) and in percents (like this height=’100%’). Please see HTML specification for more information:

http://www.w3schools.com/tags/tag_IMG.asp

Best regards.