DocumentEditor Html Output

Hi

Can I get DocumentEditor content as HTML? I need to have editable content. My app will edit and convert result to PDF.

Thanks

3 Replies

SR Stephen Raj Chandra Sekar Syncfusion Team December 11, 2020 08:03 AM UTC

Hi Samet, 
 
Reg. Can I get DocumentEditor content as HTML 
You can export the document editor content as html in server side. 
 
Please refer the below documentation on server-side export using SFDT string. 
 
In the above documentation, sfdt string passed to server side and saved as docx with ExportSFDT API of word document class. You can change that format type to html. kindly refer the below code snippet for saving as html 
 
Sample Code Snippet for saving it as html 
Stream document = WordDocument.Save(sfdtString, FormatType.Html); 
 
Kindly check it and let us know whether this helps. 
 
Regards, 
Stephen Raj


SA Samet Abdullah December 14, 2020 06:18 AM UTC

Thanks for your quick reply

We are using Java at server side. However, this is about server-side helper Syncfusion.EJ2.DocumentEditor available in ASP.NET Core & ASP.NET MVC platform. Is there way make this change on client-side?

Thanks,


SR Stephen Raj Chandra Sekar Syncfusion Team December 14, 2020 10:18 AM UTC

Hi Samet, 
 
Exporting as HTML in client side is not possible. Currently we support only for exporting the document as HTML in ASP.Net core or MVC. 
 
Currently, document editor doesn’t provide support to convert the SFDT to HTML format in JAVA. We have logged a feature request for this. We will include this feature in any of our upcoming releases. We will update the scheduled status of the feedback link once it is taken for implementation. Will update once implemented. You can track its status from below link.  
 
 
Regards, 
Stephen Raj

Loader.
Up arrow icon