Issue with Missing Header and Footer in Downloaded DOCX File - document editor

https://ej2.syncfusion.com/angular/demos/document-editor/auto-save/


I am currently working with the Syncfusion DocumentEditor component and have customly added headers and footers to the document in the provided demo. However, when I download the document as a DOCX file, the header and footer sections are missing in the downloaded file.

Could you please guide me on how to ensure the header and footer content is included in the exported DOCX file? If there are any specific steps or configurations required to resolve this, I would greatly appreciate your assistance.

Image_1567_1736432587590


5 Replies

KM Kavitha Muralitharan Syncfusion Team January 13, 2025 07:30 AM UTC

Hi Ananthi ,


We were unable to reproduce the reported issue from our end. We have noticed that the web layout is enabled in the provided screenshot, and we suspect the issue you are facing is because the document opened in the web layout, which will not include the Header/Footer. This is the actual behavior of MS Word, and the Document Editor also follows the same. We recommend you use the print layout to view the Header/Footer content. Please check the image screenshot for your reference.


Web Layout

Print Layout


Regards,

Kavitha M



AR Ananthi R January 13, 2025 10:23 AM UTC

Hi Kavitha,

Thank you for your earlier response.

I wanted to provide an update regarding the issue. By enabling the enablePrintLayout property, I was able to include the header and footer in the exported DOCX file successfully. However, I noticed that when exporting the document as an SFDT file, the header and footer are not included.

Could you please guide me on how to ensure the header and footer content is included when exporting as SFDT?


for reference, I have attached screenshot aswell as exported sfdt file



Image_2156_1736763589649


Attachment: Getting_Started_(7)_1f3998a0.zip



DS Dhanush Sekar Syncfusion Team January 15, 2025 10:17 AM UTC

Hi Ananthi,


We have tried to replicate the issue but couldn't encounter any issue from our end. Please find the sample and video in below attachment.

Sample:  Uutvaaby (forked) - StackBlitz


Regards,

Dhanush S


Attachment: SfdtExport_d5ed22ee.zip


AR Ananthi R January 21, 2025 08:22 AM UTC

Thanks, Got fixed



FL Florence Lilian Awino Syncfusion Team January 23, 2025 11:05 AM UTC

Hi Ananthi,

We're glad your issue was resolved. Please get back to us for further assistance in the future.

Regards,

Florence L.


Loader.
Up arrow icon