Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 8720

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>Introduction</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.pdf.html">PDF</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="pdf.setup.html">Installing/Configuring</a></div>
 <div class="up"><a href="book.pdf.html">PDF</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="intro.pdf" class="preface">
  <h1 class="title">Introduction</h1>
  <p class="para">
   The PDF functions in PHP can create PDF files using the PDFlib
   library which was initially created by Thomas Merz and is now
   maintained by <a href="http://www.pdflib.com/products/pdflib-family/" class="link external">&raquo;&nbsp;PDFlib GmbH</a>.
  </p>
  <p class="para">
   The documentation in this section is only meant to be an overview
   of the available functions in the PDFlib library and should not be
   considered an exhaustive reference. For the full and detailed 
   explanation of each function, consult the PDFlib Reference Manual
   which is included in all PDFlib packages distributed by PDFlib GmbH.
   It provides a very good overview of what PDFlib is capable of doing
   and contains the most up-to-date documentation of all functions.
  </p>
  <p class="para">
   For a jump start we urge you to take a look at the programming samples
   which are contained in all PDFlib distribution packages. These samples
   demonstrate basic text, vector, and graphics output as well as 
   higher-level functions, such as the PDF import facility (PDI).
  </p>
  <p class="para">
   All of the functions in PDFlib and the PHP module have identical
   function names and parameters. Unless configured otherwise, all
   lengths and coordinates are measured in PostScript points. There are
   generally 72 PostScript points to an inch, but this depends on the 
   output resolution. Please see the PDFlib Reference Manual
   included in the PDFlib distribution for a more thorough explanation
   of the coordinate system used.
  </p>
  <p class="para">
   With version 6, PDFlib offers an object-oriented API for PHP 5 in 
   addition to the function-oriented API for PHP 4. The main difference is
   the following:
  </p>
  <p class="para">
   In PHP 4, first a PDF resource has to be retrieved with a function call
   like 
  </p>
  <p class="para">
   $p = PDF_new().
  </p>
  <p class="para">
   This PDF resource is used as the first parameter in all further function
   calls, such as in
  </p>
  <p class="para">
   PDF_begin_document($p, &quot;&quot;, &quot;&quot;).
  </p>
  <p class="para">
   In PHP 5 however, a PDFlib object is created with
  </p>
  <p class="para">
   $p = new PDFlib().
  </p>
  <p class="para">
   This object offers all PDFlib API functions as methods, e.g. as with
  </p>
  <p class="para">
   $p-&gt;begin_document(&quot;&quot;, &quot;&quot;).
  </p>
  <p class="para">
   In addition, exceptions have been introduced in PHP 5 which are
   supported by PDFlib 6 and later as well.
  </p>
  <p class="para"> 
   Please see the <a href="pdf.examples.html" class="link">examples</a> below for
   more information.
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    If you&#039;re interested in alternative free PDF generators that do not 
    utilize external PDF libraries, see <a href="faq.using.html#faq.using.freepdf" class="link">
    this related FAQ</a>.
   </p>
  </p></blockquote>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.pdf.html">PDF</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="pdf.setup.html">Installing/Configuring</a></div>
 <div class="up"><a href="book.pdf.html">PDF</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>