[Internal] DOCX to PDF Rendering Issue: Missing Header and Footer
When rendering .docx
files to PDF using IronPDF, users may encounter a problem where headers and footers defined in the original Word document are missing in the output PDF.
❗ Affected Scenario
-
Input:
.docx
file with header and/or footer -
Output: Rendered PDF missing header/footer content
This is a known limitation in the current DOCX-to-PDF rendering process, particularly when using DocxToPdfRenderer.RenderDocxAsPdf()
, aside from other inconsistencies and unexpected output.
✅ Workaround
Until the issue is fixed, use the AddHtmlHeader()
and AddHtmlFooter()
methods to explicitly define the content before rendering.
🧩 Implementation Example (C#)

🔍 Notes
-
Dynamic fields like
{page}
and{total-pages}
are supported and useful for pagination. - This may not be ideal if the user do not have access to the header and footer of the input docx.
AddTextHeader()
andAddTextFooter()
can be used for simpler header and footer