[107] | 1 | *********************************************************
|
---|
| 2 | ** This program is distributed under the LGPL License, **
|
---|
| 3 | ** for more information see file _LGPL.txt or **
|
---|
| 4 | ** http://www.gnu.org/licenses/lgpl.html **
|
---|
| 5 | ** **
|
---|
| 6 | ** Copyright 2008-2011 by Laurent Minguet **
|
---|
| 7 | *********************************************************
|
---|
| 8 | *******************************
|
---|
| 9 | * HTML2PDF v4.03 - 2011-05-27 *
|
---|
| 10 | *******************************
|
---|
| 11 |
|
---|
| 12 | How to use :
|
---|
| 13 | ------------
|
---|
| 14 | - You need at least PHP 5
|
---|
| 15 |
|
---|
| 16 | - Look at the examples provided to see how it works.
|
---|
| 17 |
|
---|
| 18 | - It is very important to provide valid HTML 4.01 to the converter,
|
---|
| 19 | but only what is in the <body>
|
---|
| 20 |
|
---|
| 21 | - for borders: it is advised that they are like "solid 1mm #000000"
|
---|
| 22 |
|
---|
| 23 | - for padding, they are applicable only on tags table, th, td, div, li
|
---|
| 24 |
|
---|
| 25 | - A default font can be specified, if the requested font does not exist or if no font is specified:
|
---|
| 26 | $html2pdf->setDefaultFont('Arial');
|
---|
| 27 |
|
---|
| 28 | - The possibility to protect your PDF is present, CF Example 7.
|
---|
| 29 |
|
---|
| 30 | - Some tests can be enabled (true) or disabled (false) :
|
---|
| 31 | * setTestIsImage method: test that images must exist
|
---|
| 32 | * setTestTdInOnePage method: test that the contents of TDs fit on one page
|
---|
| 33 | * setTestIsDeprecated method: test that old properties of specific tags are not used anymore
|
---|
| 34 |
|
---|
| 35 | - A DEBUG mode to know the resources used is present
|
---|
| 36 | It is activated by adding the following command just after the contructor (see Example 0):
|
---|
| 37 | $htmlpdf->setModeDebug();
|
---|
| 38 |
|
---|
| 39 | - Some specific tags have been introduced:
|
---|
| 40 | * <page></page> (CF Exemple 7 & wiki)
|
---|
| 41 | determines the orientation, margins left, right, top and bottom, the background image
|
---|
| 42 | and the background color of a page, its size and position, the footer.
|
---|
| 43 | It is also possible to keep the header and footer of the previous pages,
|
---|
| 44 | through the attribut pageset="old" (see Example 3 & 4 & wiki)
|
---|
| 45 |
|
---|
| 46 | * <page_header></page_header> (CF Example 3 & wiki)
|
---|
| 47 |
|
---|
| 48 | * <page_footer></page_footer> (CF Example 3 & wiki)
|
---|
| 49 |
|
---|
| 50 | * <nobreak></nobreak> (cd wiki)
|
---|
| 51 | used to force the display of a section on the same page.
|
---|
| 52 | If this section does not fit into the rest of the page, a page break is done before.
|
---|
| 53 |
|
---|
| 54 | * <barcode></barcode> (CF Examples 0 & 9 & wiki)
|
---|
| 55 | can insert barcodes in pdfs, CF Examples 0 and 9
|
---|
| 56 | The possible types of codebar are alls of TCPDF
|
---|
| 57 |
|
---|
| 58 | * <qrcode></qrcode> (CF Example 13 & wiki)
|
---|
| 59 | can insert QRcode 2D barcodes
|
---|
| 60 | (QR Code is registered trademark of DENSO WAVE INCORPORATED | http://www.denso-wave.com/qrcode/)
|
---|
| 61 |
|
---|
| 62 | * <bookmark></bookmark> (CF Examples 7 & About & wiki)
|
---|
| 63 | can insert bookmark in pdfs, CF Example 7 and About.
|
---|
| 64 | It is also possible to automatically create an index at the end of
|
---|
| 65 | document (CF Example About & wiki)
|
---|
| 66 |
|
---|
| 67 | * css property "rotate" :
|
---|
| 68 | values : 0, 90, 180, 270
|
---|
| 69 | works only on div (cf example 8)
|
---|
| 70 |
|
---|
| 71 | change log :
|
---|
| 72 | -----------
|
---|
| 73 | see on this page : http://html2pdf.fr/en/download
|
---|
| 74 |
|
---|
| 75 | Help & Support :
|
---|
| 76 | ---------------
|
---|
| 77 | For questions and bug reports, thank you to use only the support link below.
|
---|
| 78 | I will answer to your questions only on it...
|
---|
| 79 |
|
---|
| 80 | Informations :
|
---|
| 81 | -------------
|
---|
| 82 | Programmer : Spipu
|
---|
| 83 | email : webmaster@html2pdf.fr
|
---|
| 84 | web site : http://html2pdf.fr/
|
---|
| 85 | wiki : http://html2pdf.fr/en/wiki
|
---|
| 86 | support : http://html2pdf.fr/en/forum
|
---|
| 87 |
|
---|
| 88 | Thanks :
|
---|
| 89 | -------
|
---|
| 90 | * Olivier Plathey: for have made FPDF
|
---|
| 91 | * Nicola Asuni: for the changes he has agreed to make to TCPDF
|
---|
| 92 | * yAronet: for hosting support forum
|
---|
| 93 | * everyone who helped me to develop this library and to bring the texts
|
---|