TCPDF::AddPage( $orientation = '',  $format = '',  $keepmargins = false,  $tocpage = false )

Adds a new page to the document. If a page is already present, the Footer() method is called first to output the footer (if enabled). Then the page is added, the current position set to the top-left corner according to the left and top margins (or top-right if in RTL mode), and Header() is called to display the header (if enabled).


Description Description

The origin of the coordinate system is at the top-left corner (or top-right for RTL) and increasing ordinates go downwards.

See also See also

  • startPage(),: endPage(), addTOCPage(), endTOCPage(), getPageSizeFromFormat(), setPageFormat()

Top ↑

Parameters Parameters

$orientation

(Optional) (string) page orientation. Possible values are (case insensitive):<ul><li>P or PORTRAIT (default)</li><li>L or LANDSCAPE</li></ul>

Default value: ''

$format

(Optional) (mixed) The format used for pages. It can be either: one of the string values specified at getPageSizeFromFormat() or an array of parameters specified at setPageFormat().

Default value: ''

$keepmargins

(Optional) (boolean) if true overwrites the default page margins with the current margins

Default value: false

$tocpage

(Optional) (boolean) if true set the tocpage state to true (the added page will be used to display Table Of Content).

Default value: false


Top ↑

Source Source

File: includes/lib/tcpdf/tcpdf.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.