addpage.htm 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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>AddPage</TITLE>
  6. <LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
  7. </HEAD>
  8. <BODY>
  9. <H2>AddPage</H2>
  10. <TT>AddPage([<B>string</B> orientation])</TT>
  11. <H4 CLASS='st'>Version</H4>
  12. 1.0
  13. <H4 CLASS='st'>Description</H4>
  14. Adds a new page to the document. If a page is already present, the Footer() method is called
  15. first to output the footer. Then the page is added, the current position set to the top-left
  16. corner according to the left and top margins, and Header() is called to display the header.
  17. <BR>
  18. The font which was set before calling is automatically restored. There is no need to call
  19. SetFont() again if you want to continue with the same font. The same is true for colors and
  20. line width.
  21. <BR>
  22. The origin of the coordinate system is at the top-left corner and increasing ordinates go
  23. downwards.
  24. <H4 CLASS='st'>Parameters</H4>
  25. <TT><U>orientation</U></TT>
  26. <BLOCKQUOTE>
  27. Page orientation. Possible values are (case insensitive):
  28. <UL>
  29. <LI><TT>P</TT> or <TT>Portrait</TT>
  30. <LI><TT>L</TT> or <TT>Landscape</TT>
  31. </UL>
  32. The default value is the one passed to the constructor.
  33. </BLOCKQUOTE>
  34. <H4 CLASS='st'>See also</H4>
  35. <A HREF="fpdf.htm">FPDF()</A>,
  36. <A HREF="header.htm">Header()</A>,
  37. <A HREF="footer.htm">Footer()</A>,
  38. <A HREF="setmargins.htm">SetMargins()</A>.
  39. <HR STYLE="margin-top:1.2em">
  40. <DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
  41. </BODY>
  42. </HTML>