Change document content directly

I would like to know if it is possible to change the content data of the document editor without closing and opening the document, how the history mode works.
But I build models of merge and conditional fields, but it is very slow to reopen the document each time I process the document, when the document is large.

7 Replies

KB Kurthis Banu Abdul Majeeth Syncfusion Team March 30, 2021 09:46 AM UTC

Hi Hamud, 

Current Working behaviour of Document Editor for Import the document with server-side dependency:  
1.       Document Editor sends the word document from client to server. 
2.       Server converts the word document into sfdt and sends back to client side. 
3.       Document Editor paginates the sfdt and display the content page by page. 

We had checked your requirement. we are suggested to use open the larger size document in “SFDT” Format using open API to reduce the time taken in server-side interaction. Save your document in sfdt format and open it directly from “File Explorer” using Open button without server-side interaction. 

Documentation Link: 




kindly check whether this satisfies your requirement. If not kindly share your requirement in detail.  

Regards, 
Kurthis Banu A. 



HD Hamud de Souza March 30, 2021 11:57 AM UTC

Hello,

This document is already in SFDT format, but the editor is slow to load, and even some documents are losing formatting.
Even if you open it via direct and it ends up becoming slow.


KB Kurthis Banu Abdul Majeeth Syncfusion Team March 31, 2021 04:11 AM UTC

Hi Hamud, 

 We are checked the reported issue. If suppose unsupported feature in this document when loading at that time you can facing these issues. so kindly share input word documents of the reported problem. so that we can proceed further and provide you solution at earliest.     

Note: If you have any confidential data in your Word document, please replace with some dummy data and provide us the same.    

Regards, 
Kurthis Banu A. 



HD Hamud de Souza March 31, 2021 12:45 PM UTC

Hello I am testing this document, but it takes some time to open and it gets to lock my chrome tab.
I don't know if the document editor uses virtual DOM, maybe it's an alternative.

Attachment: Original_55e38158.zip


KB Kurthis Banu Abdul Majeeth Syncfusion Team April 1, 2021 09:48 AM UTC

Hi Hamud,  

We tried to reproduce the reported issue. we can able to open shared document in latest version 19.1.54. Kindly upgrade the latest version 19.1.54.  

Note:  
Document editor keeps the entire document contents in the main memory therefore, main memory usage depends on document size and document complexity. 
In case of opening a Docx file, you may think the file size is small, but Document editor utilizes very large memory. Whereas it is a zip archive file with extension “docx”, Document editor internally decompress it and populate the content in the document object model utilizing remarkable main memory. 

Regards, 
Kurthis Banu A. 



HD Hamud de Souza April 1, 2021 12:12 PM UTC

Hello, I understood your answer, but I saw that the documentEditor is an object javascript, which in reality is a JSON, however if the object is very long in blocks and inlines the browser is slow to load, so I suggested using virtual DOM, for keep in memory only what is being rendered.


SM Suriya Murugan Syncfusion Team April 2, 2021 09:07 AM UTC

Hi Hamud, 
 
We need some clarification regarding your requirement. Can you please check and share the below details? 
 
1.       I build models of merge and conditional fields, but it is very slow to reopen the document each time I process the document, when the document is large.”: You mentioned as models of merge and conditional field, when opening document do you process anything on back end? 
2.      We have tried opening the document it takes 8 to 10 seconds to open the document. please check below video for reference: 
3.      Also, can you please share your exact use case scenario, or shall we schedule web meeting to discuss about your requirement? That will be helpful for to proceed further and provide you solution at earliest.  
 
Regards, 
Suriya M. 


Loader.
Up arrow icon