Linespacing problem

Hello,

I have a 2 page docx test document. It renders same on MS Word and LibreOffice. But document editor component renders 4 lines at end of the 1st page which should be rendered at the beginning of 2nd page. I have tested with the new version 19.1.54. I think there is a problem with linespacing calculations. I attached the test document.

Best regards

Attachment: linespacing_791a058e.rar

5 Replies 1 reply marked as answer

KB Kurthis Banu Abdul Majeeth Syncfusion Team April 5, 2021 02:44 PM UTC

Hi Adalet,  

We are checked your requirement. This is not line spacing issue ,Line spacing working properly equivalent to MS word.  

kindly check the below response for your requirement. 

The Word document is a flow document in which contents will not be preserved page by page; instead, the contents will be preserved sequentially section by section. Each section may extend to various pages based on its content like table, text, images etc. 
Word viewer/editor renders (paginates) the contents of the Word document page by page dynamically, when opened for viewing or editing and this page wise rendered information will not be preserved in the document level as per the Word file format specification. The Document Editor control does the same. 
   
Regards,  
Kurthis Banu A.  



AB AB April 8, 2021 08:24 AM UTC

Hi,

A word file is a flow document, I know that. That is not the case here. When I open the attached file the flow document looks same on MS Word, LibreOffice and Google Docs. But document editor have extra lines on 1st page that should be rendered on 2nd page. When I increase linespace from 1 to 1.09 document editor component looks same as Ms Word. I think a linespace has 1 or 2 pixels are missing when drawing on canvas.

Regards


KB Kurthis Banu Abdul Majeeth Syncfusion Team April 9, 2021 11:56 AM UTC

Hi Adalet, 

We are cross checked the reported issue "document editor component renders 4 lines at end of the 1st page which should be rendered at the beginning of 2nd page" and it is not because of line spacing difference. This is because of the difference in the text size while rendering the document elements like paragraphs and tables based on HTML text measuring. Even though we have calculated the size of the text with the correct font and font size values, the difference lies; it may be as low as 0.00XX to 0. XXXX values compared to that in Microsoft Word. Microsoft Word preserves different size for the text based on the font, compared to that of size calculated using HTML text measuring. Hence there is difference in the pagination of our Document editor component compared to that of Microsoft Word. We are constantly improving our Document Editor layout to match as like as MS Word in step by step process.  

At present we are concentrating to address the data loss problem while opening Word documents in Document editor due to unsupported elements as priority item requested by many customers. Hence, we will add priority to this pagination problem specific to HTML text measuring difference and address it immediately after addressing the data loss problem. We will let you know once the pagination difference is addressed. We appreciate your patience. 


Regards, 
Kurthis Banu A. 


Marked as answer

AB AB April 13, 2021 01:41 PM UTC

Thank You


KB Kurthis Banu Abdul Majeeth Syncfusion Team April 14, 2021 05:17 AM UTC

Hi Adalet,  

Thank you for your update. 

Regards, 
Kurthis Banu A. 


Loader.
Up arrow icon