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 22.214.171.124 version only not on later version .
Do help me or suggest some snippet to solve this .
<?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: