Location: PHPKode > projects > PHP OpenTailorShop > phpopentailorshop/fpdf/doc/addpage.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link type="text/css" rel="stylesheet" href="../fpdf.css">
<code>AddPage([<b>string</b> orientation ,[ <b>mixed</b> format]])</code>
Adds a new page to the document. 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
<dl class="param">
Page orientation. Possible values are (case insensitive):
<li><code>P</code> or <code>Portrait</code></li>
<li><code>L</code> or <code>Landscape</code></li>
The default value is the one passed to the constructor.
Page format. It can be either one of the following values (case insensitive):
or an array containing the width and the height (expressed in user unit).<br>
The default value is the one passed to the constructor.
<h2>See also</h2>
<a href="fpdf.htm">FPDF()</a>,
<a href="header.htm">Header()</a>,
<a href="footer.htm">Footer()</a>,
<a href="setmargins.htm">SetMargins()</a>.
<hr style="margin-top:1.5em">
<div style="text-align:center"><a href="index.htm">Index</a></div>
Return current item: PHP OpenTailorShop