Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Wed Nov 23, 2022 1:43 pm

Hello Team,

I am facing issue with spire.doc when converting the HTML to document of type docx 2013 or any.

this HTML is generated from "ck editor 5" which contains image.

Original dimension of sample image : 512X 512 pixcels

Sample Not working: Once i use image Resizing the generated Document is having wrong dimensions.

<p>
<img class="image_resized" style="width:25 %;" src=" sample image">
</p>

Note: we expect dimension of 128 X 128 pixcels but its coming different.


Sample 2 (working one) : if No resizing is used, then the generated Document is having the original expected dimensions .
<p>
<img src="sample image">
</p>

Saket2005
 
Posts: 1
Joined: Wed Nov 23, 2022 6:09 am

Mon Nov 28, 2022 1:33 am

Hello,

Thanks for your feedback.
Kindly note that your image style settings were not supported in MS Word itself. When you directly open it in MS Word, you will find the scale mode also didn’t take effect. Our product is based on Microsoft word. Thus, our product also can not recognize these tags. At the same time, we also replied to your question in outlook.
If you are unable to modify the html code, you can refer to the following tutorial to use our doc product to get the image and change the size of the image. If you have any further questions, please feel free to contact us.

Sincerely,
Simple
E-iceblue support team
User avatar

Simple.Li
 
Posts: 248
Joined: Fri Jul 01, 2022 2:33 am

Return to Spire.Doc