Movatterモバイル変換


[0]ホーム

URL:


mPDF Manual – Headers & Footers

Rotated pages

Special case - rotated Portrait headers on Landscape pages

<?php$mpdf->forcePortraitHeaders=true;

This is a quick fix which rotates HTML headers and Footers (only - not normal ones)on landscape pages in the following conditions:

  • document orientation is portrait
  • when adding a page, you must only call$mpdf->AddPage('L')
    or<pagebreak orientation="landscape" />

If you try to set new margins/headers etc. for new landscape pages when variable$forcePortraitHeaders = true, it will go wrong.

See also


[8]ページ先頭

©2009-2026 Movatter.jp