Loading a document in the document editor moves text around on the pages

Hi. I'm trying to get the document editor working in my angular app, but I noticed that when I load the attached document into it the pages are different and text is in different spots. It appears that it is changing the pagination. Is there are way to prevent this so it appears exactly as it does in word? 

Here are some screen shots of what the document looks like in the editor. 




Attachment: Uifsa_Registration_Petition__Contempt_4471fab4.zip

34 Replies

SM Suriya Murugan Syncfusion Team August 23, 2021 07:17 AM UTC

Hi Luke, 

Syncfusion Greetings! 

The Syncfusion Document editor component’s document pagination (page-by-page display) can’t be guaranteed for all the Word documents to match the pagination of Microsoft Word application. For more information about why the document pagination (page-by-page display) differs from Microsoft Word 

Eventhough, we have planned to include the API to optimize the text measuring and text displaying. We will include it in our August 24,2021 patch release. It may be resolve your reported issue. We will check the document with tomorrow patch release will update further details by August 24,2021. 

Regards, 
Suriya M. 



SM Suriya Murugan Syncfusion Team August 24, 2021 11:52 AM UTC

Hi Luke, 
 
## Below issue 
 
 
 
We will validate above issue and will update details by August 26,2021. 
 
## Pagination issue 
 
We have included “enableOptimizedTextMeasuring” API in documentEditorSettings, set this property as `true` to use optimized text measuring approach to match Microsoft Word pagination; otherwise, `false`. 
 
Code snippet: 
 
this.container.documentEditor.documentEditorSettings.enableOptimizedTextMeasuring=true
 
 
 
Please upgrade your packages to latest version(19.2.57) to make use of this property: 
 
 
Please let us know if you have any questions. 
 
Regards, 
Suriya M. 



LC Luke Carlson August 24, 2021 12:21 PM UTC

Hi Suriya,

I will test this shortly and get back to you. Thank you! 



LC Luke Carlson August 24, 2021 12:46 PM UTC

Hi Suriya, I'm still seeing the issue. I've installed @syncfusion/ej2-angular-documenteditor version 19.2.57. My Angular versions are 12.2.2 if that is relevant. 






SM Suriya Murugan Syncfusion Team August 25, 2021 05:57 AM UTC

Hi Luke, 

We are validating the check box paragraph  layout issue. we will update further details by August 26,2021. 

We provided release information for “In the superior” paragraph layout in first page issue(pagination issue). 

Please let us know if you have any questions. 

Regards, 
Suriya M. 



LC Luke Carlson August 25, 2021 11:46 AM UTC

Hi Suriya,

Apologies, I misunderstood. Thank you.


I am still noticing some pagination issues farther down. It also appears that one of the images isn't being loaded properly. From previous conversations with you guys I know this image is a .emf or .wmf format. Screenshots of the issues are below.

Original in WORD



In Syncfusion editor




LC Luke Carlson August 25, 2021 06:58 PM UTC

It looks like that corrupted image issue doesn't occur if I load the document as an SFDT string, however, I am seeing some characters coming across strangely, first set of screenshots, and you'll notice as well that checkboxes that had X in WORD, now have checkmarks in Syncfusion. Also loading it as an SFDT string causes the original pagination issue to come back, second set of screenshots. 


In Syncfusion editor

 


In WORD



In Syncfusion editor



In WORD




SM Suriya Murugan Syncfusion Team August 27, 2021 02:38 AM UTC

  
Hi Luke, 
 
## Check box paragraph layout issue 
 
We have confirmed the reported issue as bug and logged the defect report. We will fix this issue and include in our EJ2 patch release which scheduled on September 29,2021. 
 
You can track the status of bug through below feedback link: 
 

## Image not found issue 

We cross checked your document. Document contains EMF image. 
  
Regarding: EMF Image   
 
We have included EMF preservation in ASP.Net MVC platform alone. We are sorry to inform you at present Document Editor doesn’t have support Image EMF type in ASP.Net core platform.   
 For core and java, it will not work.   

So, can you please try importing document by using MVC service and let us know if you still facing issue?  



Can you please try in below sample and let us know still facing pagination issue: 


 

Above image rendering like this in word. Can you please confirm have installed any font for this? 


Regards, 
Suriya M. 



LC Luke Carlson August 27, 2021 12:20 PM UTC

Hi Suriya,


The emf image is no longer a problem if I convert the document to an SFDT string and then render it. 


What do you mean installed any fonts for this? Do I need to install fonts in the editor in order to get the word document to render properly? 



KB Kurthis Banu Abdul Majeeth Syncfusion Team August 30, 2021 11:06 AM UTC

Hi Luke,  

Regarding: I am seeing some characters coming across strangely 

 
 
 
We have checked the provided document. It contains “SoftHyphen”. Currently, document editor doesn’t provide support for softHyphen. 

 Regards, 
Kurthis Banu A. 



LC Luke Carlson August 30, 2021 01:20 PM UTC

Hi Kurthis,


Is there a plan to add support for softHyphen to the Angular document editor? 



KB Kurthis Banu Abdul Majeeth Syncfusion Team August 31, 2021 01:53 PM UTC

Hi Luke,   

Currently, Document Editor doesn’t have support for hyphenation feature. We already logged the feature request for this. We will include this feature in any of our upcoming release.    

We usually have an interval of at least three months between the releases. At the planning stage for every release cycle, we review all open features once again and finalize features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented.       
 
You can track the status of feature from the below link:       

Please up-vote this feature request to make this feature request as our priority.   

Regards, 
Kurthis Banu A. 



LC Luke Carlson August 31, 2021 02:30 PM UTC

Hi Kurthis,

Understood. Thank you.

Do you have any information on the general pagination of the word document in the editor? The highlighted line did not really improve much and I'm still seeing some significant differences between the syncfusion editor and Microsoft Word while using the attached document. I'm using 19.2.57 of the angular document editor and 19.2.0.57 of the Syncfusion.EJ2.WordEditor.AspNet.Mvc5 in my .Net Framework 4.7.2 cloud service to get the SDFT string. 



Attachment: Uifsa_Registration_Petition__Contempt_c5622754.zip


SM Suriya Murugan Syncfusion Team September 2, 2021 03:06 AM UTC

Hi Luke, 

We are checking the reported case and will update details by September 2,2021. 

Regards, 
Suriya M. 



KB Kurthis Banu Abdul Majeeth Syncfusion Team September 2, 2021 11:51 AM UTC

Hi Luke, 

Regarding: Continuous section break  

We have checked the provided document. It contains continuous section break. Currently, we have considered it as next page section break. So, content rendered in new page.    

 Currently, document editor doesn’t provide support for section continuous layout. We have already logged this as feature request.  
  
As per our open feature priority list for Document editor component, this feature is likely to be considered for implementation during 2021 Volume 4 release.    
  
Disclaimer: The date for the feature implementation is tentative and not a commitment on our parts.    


Regarding: Check box paragraph layout issue  
 
  
 

We have confirmed the reported issue as bug and logged the defect report. We will fix this issue and include in our EJ2 patch release which scheduled on September 29,2021.  
  
You can track the status of bug through below feedback link:  

Regards, 
Kurthis Banu A. 



LC Luke Carlson September 2, 2021 12:36 PM UTC

Hi Kurthis,


I'm only seeing a "section break" at the end of the document. Why does that make the rest of the document wrong as well? 



KB Kurthis Banu Abdul Majeeth Syncfusion Team September 3, 2021 09:34 AM UTC

Hi Luke,  

Regarding: Continuous section break 

Yes, last page has continuous section break, we have considered it as next page section break. So, content rendered in new page that why added new blank page. 
 
As per our open feature priority list for Document editor component, this feature is likely to be considered for implementation during 2021 Volume 4 release which scheduled on end of December.     
   
Disclaimer: The date for the feature implementation is tentative and not a commitment on our parts.     
 


Regarding: Export document as pdf  
 
Are you asking about added extra pages whenever exporting? if example your input document have 15 pages, exported document had some extra pages. 

Kindly share us more detail about the reported problem such us screenshot or video demonstration of the reported problem, which will be helpful for us to investigate further and provide you the solution at the earliest.  
  
  
Regards,  
Kurthis Banu A.  



KB Kurthis Banu Abdul Majeeth Syncfusion Team September 3, 2021 10:41 AM UTC

Hi Luke,   

Are you are facing any other issue in PDF export apart from this (extra pages added, emf, hyphenation, continues section break, checkbox misalignment)?  If yes, kindly share us more detail about the reported problem such us screenshot or video demonstration of the reported problem, which will be helpful for us to investigate further and provide you the solution at the earliest? 

Regards, 
Kurthis Banu A. 



LC Luke Carlson September 3, 2021 12:05 PM UTC

Hi Kurthis, 


I think those are all of the issues I am facing, but if I come across anything else I'll be sure to get back to you. 


Thank you! 



KB Kurthis Banu Abdul Majeeth Syncfusion Team September 6, 2021 08:19 AM UTC

 Hi Luke, 

Thanks for the update. Currently, we are validating the extra pages added whenever export document as pdf. We will update further details by September 8,2021. 

Regards, 
Kurthis Banu A. 



SM Suriya Murugan Syncfusion Team September 9, 2021 03:27 AM UTC

 Hi Luke,  


Apologies! 


We need some additional timeline to validate the extra pages added whenever export document as pdf. We will update further details by September 9,2021.  

Regards,  
Suriya M.  



KB Kurthis Banu Abdul Majeeth Syncfusion Team September 10, 2021 03:49 AM UTC

Hi Luke, 

We are facing complexity in finding the root cause of the reported issue. So, we need some additional timeline to validate the reported issue. We will update further details by September 14,2021. 

Regards,  
Kurthis Banu A.  



KB Kurthis Banu Abdul Majeeth Syncfusion Team September 15, 2021 03:25 AM UTC

Hi Luke,  
On analyzing the document input word file has 15 pages and the exported pdf document has 17 pages. 
  
1.       Document has unsupported feature Section break continuous at the end of the document. Currently Section break continuous will be considered as normal section break in word export and the same in Pdf conversion also. 
2.       Apart from the last page there another single page which is being rendered due to contents are moving from the first page.
  
We are analyzing further to know the exact root cause. Will update further details by Sep 17th, 2021. 

Regards, 
Kurthis Banu A. 



SM Suriya Murugan Syncfusion Team September 20, 2021 03:47 AM UTC

Hi Luke, 
 
Apologies! 
 
We are facing some difficulties to find the exact cause of the issue. We will update further details by September 21,2021. 
 
Regards, 
Suriya M. 



SM Suriya Murugan Syncfusion Team September 22, 2021 03:39 AM UTC

Hi Luke, 

We have confirmed the reported issue as bug and logged the defect report. We will fix this issue and include in our EJ2 patch release which scheduled on October 27,2021. 

You can track the status of bug through below feedback link: 



Regards, 
Suriya M. 



KB Kurthis Banu Abdul Majeeth Syncfusion Team September 22, 2021 03:41 AM UTC

Hi Luke,  

Thanks for your patience. 

We have confirmed the reported issue as bug and logged the defect report. We will fix this issue and include in our EJ2 patch release which scheduled on October 27,2021.  

You can track the status of bug through below feedback link:  

Regards, 
Kurthis Banu A. 



KB Kurthis Banu Abdul Majeeth Syncfusion Team October 13, 2021 03:28 PM UTC

Hi Luke,  

We deeply regret the inconvenience caused.   

We are not possible to include the fix in our latest patch release. Currently, we are working on resolving this issue with high priority. We will fix this issue and include in our EJ2 patch release which scheduled on October 20, 2021.      

You can track the status of bug through below feedback link:    

Regards, 
Kurthis Banu A. 



KB Kurthis Banu Abdul Majeeth Syncfusion Team October 20, 2021 04:05 PM UTC

Hi Luke,   

We deeply regret the inconvenience caused.    

We are not possible to include the fix in our latest patch release. Currently, we are working on resolving this issue with high priority. We will fix this issue and include in our patch release which scheduled on November 3, 2021.    

You can track the status of bug through below feedback link:    

Regards, 
Kurthis Banu A. 



KB Kurthis Banu Abdul Majeeth Syncfusion Team October 22, 2021 08:14 AM UTC

Hi Luke, 

Regarding: Extra pages added whenever exporting 
 
Thanks for your patience. 

We are cross checked your reported issue. Reported issue might be due default -font size of Word document.  

For your reference, please find the screenshot illustration in below: 

In MS Word -default font size was 10 

 



In Document Editor -default font size was 11 

 
  



 You can resolve your reported problem using below code snippet.You can set the default character format for Documenteditorcontainer instance.   

Like below you can change the default formatting of Documenteditorcontainer:  
let container: DocumentEditorContainer = new DocumentEditorContainer({ height: "890px" });
container.serviceUrl = 'https://ej2services.syncfusion.com/production/web-services/api/documenteditor/';
DocumentEditorContainer.Inject(Toolbar);
container.setDefaultCharacterFormat({fontSize: 10});
container.appendTo('#container');  
  

API documentation:     
    

For your reference, we have prepared the sample application for your reference, and it can be downloaded from the below link.     

Client-side sample: 

Server-side sample: 

Regards,  
Kurthis Banu A.  



KB Kurthis Banu Abdul Majeeth Syncfusion Team November 3, 2021 02:18 PM UTC

Hi Luke,  

Regarding: Check box paragraph layout issue. 

Sorry for the inconvenience caused.     

We are not possible to include the fix in our latest patch release. Currently, we are working on resolving this issue with high priority. We will fix this issue and include in our 2021 volume3 SP release which scheduled on Middle of November,2021.     

You can track the status of bug through below feedback link:     

Regards, 
Kurthis Banu A. 



KB Kurthis Banu Abdul Majeeth Syncfusion Team November 12, 2021 06:28 PM UTC

Hi Luke,  

We deeply regret the inconvenience caused. 

We are facing complexity due to Font substitution table present in the document which is marking changes to the text elements used in the document. We will resolve your reported issue and include in our EJ2 patch release which scheduled on November 30,2021. We appreciate your patience until then. 

You can track the status of bug through below feedback link: 

Regards, 
Kurthis Banu A. 



KB Kurthis Banu Abdul Majeeth Syncfusion Team December 3, 2021 12:13 PM UTC

Hi Luke,   

We deeply regret the inconvenience caused.  

Due to technical issue, we were unable to include the fix in the patch release. We will fix this issue and include in our  First patch release after 2021 Volume 4 release which scheduled on end of December,2021. We would appreciate your valuable patience until then. 

You can track the status of bug through below feedback link:  

Regards,  
Kurthis Banu A.  



SM Suriya Murugan Syncfusion Team December 30, 2021 03:52 AM UTC

Hi Luke,  

We deeply regret the inconvenience caused.  

We are not possible to include the fix in our latest patch release. We are facing complexity in resolving the wrapped table. We are working on this with high priority. We will include it in our EJ2 patch release which is scheduled for January 19,2022. We would appreciate your valuable patience until then.   

You can track the status of the bug through below feedback link: 


Regards,   
Suriya M. 




SM Suriya Murugan Syncfusion Team January 13, 2022 11:08 AM UTC

Hi Luke,


We deeply regret for the inconvenience caused.


On further analyzing the reported document, we found that the document has some invalid font names. When opening this document with Microsoft Word desktop app these invalid font names are considered as fonts that are not available in machine and substitutes alternate font automatically on its own.  You can find the substituted font information in Microsoft Word using “File -> Options -> Advanced -> Font substitution”. 

Graphical user interface, application

Description automatically generated


Please find the list of invalid fonts used in your document from above screen shot.

 
Whereas in Syncfusion Document editor component it is not possible to detect whether a font is installed in the machine or not. This is a browser level limitation in accessing the fonts installed in machine. 


If you change the font name to verdana, it rendering properly in Document editor.



Please let us know if you have questions.



Regards,

Suriya M.


Loader.
Up arrow icon