PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wiloke-listing-tools
/
vendor
/
setasign
/
fpdf
/
doc
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>__construct</title> <link type="text/css" rel="stylesheet" href="../fpdf.css"> </head> <body> <h1>__construct</h1> <code>__construct([<b>string</b> orientation [, <b>string</b> unit [, <b>mixed</b> size]]])</code> <h2>Description</h2> This is the class constructor. It allows to set up the page size, the orientation and the unit of measure used in all methods (except for font sizes). <h2>Parameters</h2> <dl class="param"> <dt><code>orientation</code></dt> <dd> Default page orientation. Possible values are (case insensitive): <ul> <li><code>P</code> or <code>Portrait</code></li> <li><code>L</code> or <code>Landscape</code></li> </ul> Default value is <code>P</code>. </dd> <dt><code>unit</code></dt> <dd> User unit. Possible values are: <ul> <li><code>pt</code>: point</li> <li><code>mm</code>: millimeter</li> <li><code>cm</code>: centimeter</li> <li><code>in</code>: inch</li> </ul> A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This is a very common unit in typography; font sizes are expressed in that unit. <br> <br> Default value is <code>mm</code>. </dd> <dt><code>size</code></dt> <dd> The size used for pages. It can be either one of the following values (case insensitive): <ul> <li><code>A3</code></li> <li><code>A4</code></li> <li><code>A5</code></li> <li><code>Letter</code></li> <li><code>Legal</code></li> </ul> or an array containing the width and the height (expressed in the unit given by <code>unit</code>).<br> <br> Default value is <code>A4</code>. </dd> </dl> <h2>Example</h2> Example with a custom 100x150 mm page size: <div class="doc-source"> <pre><code>$pdf = new FPDF('P','mm',array(100,150));</code></pre> </div> <hr style="margin-top:1.5em"> <div style="text-align:center"><a href="index.htm">Index</a></div> </body> </html>
[+]
..
[-] addpage.htm
[edit]
[-] setmargins.htm
[edit]
[-] setlinewidth.htm
[edit]
[-] index.htm
[edit]
[-] settitle.htm
[edit]
[-] acceptpagebreak.htm
[edit]
[-] setx.htm
[edit]
[-] text.htm
[edit]
[-] __construct.htm
[edit]
[-] error.htm
[edit]
[-] addfont.htm
[edit]
[-] aliasnbpages.htm
[edit]
[-] setsubject.htm
[edit]
[-] sety.htm
[edit]
[-] ln.htm
[edit]
[-] getpagewidth.htm
[edit]
[-] settopmargin.htm
[edit]
[-] header.htm
[edit]
[-] multicell.htm
[edit]
[-] output.htm
[edit]
[-] link.htm
[edit]
[-] setautopagebreak.htm
[edit]
[-] line.htm
[edit]
[-] setlink.htm
[edit]
[-] setxy.htm
[edit]
[-] cell.htm
[edit]
[-] settextcolor.htm
[edit]
[-] setkeywords.htm
[edit]
[-] footer.htm
[edit]
[-] rect.htm
[edit]
[-] setfontsize.htm
[edit]
[-] setcreator.htm
[edit]
[-] setfillcolor.htm
[edit]
[-] pageno.htm
[edit]
[-] gety.htm
[edit]
[-] setdrawcolor.htm
[edit]
[-] setleftmargin.htm
[edit]
[-] setauthor.htm
[edit]
[-] getpageheight.htm
[edit]
[-] addlink.htm
[edit]
[-] close.htm
[edit]
[-] image.htm
[edit]
[-] setrightmargin.htm
[edit]
[-] write.htm
[edit]
[-] setfont.htm
[edit]
[-] setdisplaymode.htm
[edit]
[-] getstringwidth.htm
[edit]
[-] getx.htm
[edit]
[-] setcompression.htm
[edit]