<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Start new page</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.pdf-begin-layer.html">PDF_begin_layer</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.pdf-begin-page.html">PDF_begin_page</a></div> <div class="up"><a href="ref.pdf.html">PDF Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.pdf-begin-page-ext" class="refentry"> <div class="refnamediv"> <h1 class="refname">PDF_begin_page_ext</h1> <p class="verinfo">(PECL pdflib >= 2.0.0)</p><p class="refpurpose"><span class="refname">PDF_begin_page_ext</span> — <span class="dc-title">Start new page</span></p> </div> <div class="refsect1 description" id="refsect1-function.pdf-begin-page-ext-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>PDF_begin_page_ext</strong></span> ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$pdfdoc</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$width</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$height</code></span> , <span class="methodparam"><span class="type">string</span> <code class="parameter">$optlist</code></span> )</div> <p class="para rdfs-comment"> Adds a new page to the document, and specifies various options. The parameters <em><code class="parameter">width</code></em> and <em><code class="parameter">height</code></em> are the dimensions of the new page in points. Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure. </p> <p class="para"> <table class="doctable table"> <caption><strong>Common Page Sizes in Points</strong></caption> <thead> <tr> <th>name</th> <th>size</th> </tr> </thead> <tbody class="tbody"> <tr> <td>A0</td> <td>2380 x 3368</td> </tr> <tr> <td>A1</td> <td>1684 x 2380</td> </tr> <tr> <td>A2</td> <td>1190 x 1684</td> </tr> <tr> <td>A3</td> <td>842 x 1190</td> </tr> <tr> <td>A4</td> <td>595 x 842</td> </tr> <tr> <td>A5</td> <td>421 x 595</td> </tr> <tr> <td>A6</td> <td>297 x 421</td> </tr> <tr> <td>B5</td> <td>501 x 709</td> </tr> <tr> <td>letter (8.5" x 11")</td> <td>612 x 792</td> </tr> <tr> <td>legal (8.5" x 14")</td> <td>612 x 1008</td> </tr> <tr> <td>ledger (17" x 11")</td> <td>1224 x 792</td> </tr> <tr> <td>11" x 17"</td> <td>792 x 1224</td> </tr> </tbody> </table> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.pdf-begin-layer.html">PDF_begin_layer</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.pdf-begin-page.html">PDF_begin_page</a></div> <div class="up"><a href="ref.pdf.html">PDF Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>