Server-side helper library - Word documents to SFDT format

In this (https://www.syncfusion.com/products/javascript/document-editor) article, you wrote about server-side helper library which converts Word documents to SFDT format. 

Can you provide me a backend code, so i can implement it in my example.

8 Replies

MA Mugunthan Anbalagan Syncfusion Team July 5, 2018 06:46 AM UTC

Hi Lajos,

Thank you for contacting Syncfusion support.

Our Syncfusion.EJ2.DocumentEditor library is available in NET Standard 2.0 framework that helps in converting Word documents to SFDT format which is supported by EJ2 Document editor web component. You can find this package from following link.

https://www.nuget.org/packages/Syncfusion.EJ2.DocumentEditor/

Please find the sample code for converting Word document stream to SFDT format in your web API controller below. Kindly try this and let us know if this helps you. 
/// <summary> 
/// Converts the document from given stream as SFDT string. 
/// </summary> 
/// <param name="stream">The document stream.</param> 
/// <param name="formatType">The format type. It may be DOCX, DOC, RTF, WordML or Txt.</param> 
/// <returns>SFDT format string.</returns> 
public string ConvertDocument(Stream stream, Syncfusion.EJ2.DocumentEditor.FormatType formatType) 
{ 
    string sfdtText = ""; 
    Syncfusion.EJ2.DocumentEditor.WordDocument document = Syncfusion.EJ2.DocumentEditor.WordDocument.Load(stream, formatType); 
    sfdtText = Newtonsoft.Json.JsonConvert.SerializeObject(document); 
    document.Dispose(); 
    return sfdtText; 
} 

Regards, 
Mugunthan A 



KE Kendo August 24, 2018 04:53 AM UTC

I have problem with convert from docx to sfdt format and view on the editor:
  • All tab-stop not work
  • Table not stable
  • Page size not correct
  • Bullet character fail to square shape like an empty checkbox
  • Images take too long to show (> 10 seconds)
  • Header - Footer display not correct, lose table on header footer
By the way, where can I follow the release plan of document editor? 


PK Prakash Kumar D Syncfusion Team August 24, 2018 12:58 PM UTC

Hi Kendo, 
 
Thank you for contacting Syncfusion support. 
 
We have tried to reproduce the issue and are unable to reproduce it. We suspect that the issue is specific to the document. Kindly provide the input document which will helpful for us to analyze further from our side. 
 
Note:  The documents shared will not be disclosed and is only for the purpose to reproduce the issue. We assure you that the document will be deleted from our side once the issue is resolved.  
Regarding release plan of document editor 
We have defined phase by phase feature integration to our EJ2 Document Editor. Please find the roadmap of features listed in the order of consideration for upcoming phases. 
 
  1. Page break support
  2. IME text support
  3. Right to Left text support
  4. Track changes support
  5. Image positioning support
  6. Table styles support
  7. Spell checking support
  8. Comments support
  9. Shapes support
  10. Mail merge support
  11. Column support
 
Regards, 
Prakash Kumar 



KE Kendo September 26, 2018 04:35 AM UTC

Thanks for your reply.

Please review this files, very simple table with merged cells. 
But can not resize the column.

Attachment: Archive_e4def56a.zip


PK Prakash Kumar D Syncfusion Team September 28, 2018 10:06 AM UTC

Hi Kendo, 
 
Thank you for sharing the documents. 
 
We have confirmed that issue with " Table resizing in merged cells" as a defect and logged a defect report for the same. The fix for this issue will be estimated to be available in our October 9, 2018, release.  
 
Regards, 
Prakash Kumar 



RT Ramya Thirugnanam Syncfusion Team July 17, 2019 05:14 AM UTC

Hi Kendo, 
 
We are glad to announce that our Essential Studio 2019 Volume 2  release v17.2.0.34  is rolled out and is available for download under the following link. We have included the fix for the reported issue in this release. 
 
 
Regards, 
Ramya T 



KE Kendo July 18, 2019 09:50 AM UTC

Thank you Ramya Thirugnanam.
I will download it to try now.


RT Ramya Thirugnanam Syncfusion Team July 19, 2019 05:42 AM UTC

Hi Kendo,  
 
Thanks for your update. 
 
 
Regards, 
Ramya T 


Loader.
Up arrow icon