We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

No Headers and Footer on sfdt

Hello guys!

When I try to save the sfdt json, the headersFooter sections are coming in blank. How can I get the content of the headers and footer on my sfdt json?

currently I'm using this method to get the sfdt json:


getSfdt() {
            editorRef.documentEditor.selection.selectAll();
            return editorRef.documentEditor.selection.sfdt;
    },


1 Reply

SM Suriya Murugan Syncfusion Team October 10, 2022 11:03 PM

Hi Rapheal,


Please refer the below documentation to get the whole document content as SFDT:

https://ej2.syncfusion.com/react/documentation/document-editor/how-to/retrieve-the-bookmark-content-as-text/#get-the-whole-document-content-as-sfdtrich-text



Code snippet: 

this.container.documentEditor.serialize();


----------

If this post is helpful, please mark it as an answer so that other members can locate it more quickly.



Regards,

Suriya M.



Loader.
Live Chat Icon For mobile
Up arrow icon