[2] | 1 | <HTML> |
---|
| 2 | <HEAD> |
---|
| 3 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> |
---|
| 4 | <TITLE>FPDF</TITLE> |
---|
| 5 | <LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css"> |
---|
| 6 | </HEAD> |
---|
| 7 | <BODY> |
---|
| 8 | <H2>FPDF</H2> |
---|
| 9 | <TT>FPDF([<B>string</B> orientation [, <B>string</B> unit [, <B>mixed</B> format]]])</TT> |
---|
| 10 | <H4 CLASS='st'>Version</H4> |
---|
| 11 | 1.0 |
---|
| 12 | <H4 CLASS='st'>Description</H4> |
---|
| 13 | This is the class constructor. It allows to set up the page format, the orientation and the |
---|
| 14 | measure unit used in all the methods (except for the font sizes). |
---|
| 15 | <H4 CLASS='st'>Parameters</H4> |
---|
| 16 | <TT><U>orientation</U></TT> |
---|
| 17 | <BLOCKQUOTE> |
---|
| 18 | Default page orientation. Possible values are (case insensitive): |
---|
| 19 | <UL> |
---|
| 20 | <LI><TT>P</TT> or <TT>Portrait</TT> |
---|
| 21 | <LI><TT>L</TT> or <TT>Landscape</TT> |
---|
| 22 | </UL> |
---|
| 23 | Default value is <TT>P</TT>. |
---|
| 24 | </BLOCKQUOTE> |
---|
| 25 | <TT><U>unit</U></TT> |
---|
| 26 | <BLOCKQUOTE> |
---|
| 27 | User measure unit. Possible values are: |
---|
| 28 | <UL> |
---|
| 29 | <LI><TT>pt</TT>: point |
---|
| 30 | <LI><TT>mm</TT>: millimeter |
---|
| 31 | <LI><TT>cm</TT>: centimeter |
---|
| 32 | <LI><TT>in</TT>: inch |
---|
| 33 | </UL> |
---|
| 34 | A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This |
---|
| 35 | is a very common unit in typography; font sizes are expressed in that unit. |
---|
| 36 | <BR> |
---|
| 37 | <BR> |
---|
| 38 | Default value is <TT>mm</TT>. |
---|
| 39 | </BLOCKQUOTE> |
---|
| 40 | <TT><U>format</U></TT> |
---|
| 41 | <BLOCKQUOTE> |
---|
| 42 | The format used for pages. It can be either one of the following values (case insensitive): |
---|
| 43 | <UL> |
---|
| 44 | <LI><TT>A3</TT> |
---|
| 45 | <LI><TT>A4</TT> |
---|
| 46 | <LI><TT>A5</TT> |
---|
| 47 | <LI><TT>Letter</TT> |
---|
| 48 | <LI><TT>Legal</TT> |
---|
| 49 | </UL> |
---|
| 50 | or a custom format in the form of a two-element array containing the width and the height |
---|
| 51 | (expressed in the unit given by <TT>unit</TT>). |
---|
| 52 | </BLOCKQUOTE> |
---|
| 53 | <H6></H6> |
---|
| 54 | <HR> |
---|
| 55 | <DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV> |
---|
| 56 | </BODY> |
---|
| 57 | </HTML> |
---|