source: pmb4.2/trunk/fuentes/pmb/classes/html2pdf/README.md @ 815

Last change on this file since 815 was 815, checked in by jrpelegrina, 4 years ago

Initial release of pmb 4.2

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