Dokumentace : AddPage

AddPage([string orientace ,[ mixed format]])

Popis

Přidá novou stránku do dokumentu. If a page is already present, the Footer() method is called first to output the footer. Then the page is added, the current position set to the top-left corner according to the left and top margins, and Header() is called to display the header.
The font which was set before calling is automatically restored. There is no need to call SetFont() again if you want to continue with the same font. The same is true for colors and line width.
The origin of the coordinate system is at the top-left corner and increasing ordinates go downwards.

Parametry

orientace
Orientace stránky. Possible values are (case insensitive):
  • P or Portrait
  • L or Landscape
The default value is the one passed to the constructor.
format
Formát stránky. It can be either one of the following values (case insensitive):
  • A3
  • A4
  • A5
  • Letter
  • Legal
or an array containing the width and the height (expressed in user unit).

The default value is the one passed to the constructor.

Další

FPDF(), Header(), Footer(), SetMargins().