fpdf.htm 1.7 KB

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