Document with Headers and Footers

Page Layout Features

This document demonstrates how to add professional headers and footers to your PDF documents using mPDF.

Header Elements:

Footer Elements:

Content Area

This is the main content area of the document. The header and footer will appear on every page automatically.

You can add as much content as needed, and mPDF will handle the page breaks and maintain the header/footer on each page.

Template File: This content is now loaded from an external HTML file located at resources/views/mpdf/headers-footers.html

Second Page

This is the second page to demonstrate that headers and footers appear consistently across multiple pages.

Advanced Features:

Tip: Use the {PAGENO} and {nbpg} placeholders for automatic page numbering. You can also use {DATE} for current date and other built-in variables.

Template Benefits:

Margin Configuration:

This document uses custom margins: