mPDF Manual – Paging

# Double-sided documents

### Odd/Even pages and margins

mPDF can use alternating margins for ODD and EVEN pages (e.g. for DOUBLE-SIDED printing). If $mirrorMargins ($useOddEven in mPDF < 4.0) is set to TRUE or 1 before adding the first page, the document will mirror the left and right margin values on ODD and EVEN pages i.e. they become inner and outer margins. (this is automatically reversed for RTL languages).

NB Headers and footers use the ODD pages as default if this is not used.

The first page in a document will be ODD i.e. page number 1, and will appear as a RIGHT page in a LTR document (or LEFT page in a RTL document)

Example #1