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 11, 2022 04:03 AM UTC

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.
Up arrow icon