library html2pdf
Html2pdf' with Composer support. (Fixed composer dependency problem)
intelogie/html2pdf
Html2pdf' with Composer support. (Fixed composer dependency problem)
- Tuesday, May 3, 2016
- by bgauthier
- Repository
- 1 Watchers
- 0 Stars
- 78 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 304 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
HTML2PDF v4.4. - 2015-12-10
License:
This program is distributed under the LGPL License,
for more information see file _LGPL.txt or
http://www.gnu.org/licenses/lgpl.html
Copyright 2008-2015 by Laurent Minguet
How to use:
-
You need at least PHP 5.2, (*1)
-
Look at the examples provided to see how it works., (*2)
-
It is very important to provide valid HTML 4.01 to the converter,
but only what is in the <body>, (*3)
-
for borders: it is advised that they are like solid 1mm #000000, (*4)
-
for padding, they are applicable only on tags table, th, td, div, li, (*5)
-
A default font can be specified, if the requested font does not exist or if no font is specified:, (*6)
$html2pdf->setDefaultFont('Arial');, (*7)
-
The possibility to protect your PDF is present, CF Example 7., (*8)
-
Some tests can be enabled (true) or disabled (false):, (*9)
-
setTestIsImage method: test that images must exist, (*10)
-
setTestTdInOnePage method: test that the contents of TDs fit on one page, (*11)
-
setTestIsDeprecated method: test that old properties of specific tags are not used anymore, (*12)
-
A DEBUG mode to know the resources used is present.
It is activated by adding the following command just after the contructor (see Example 0):
$htmlpdf->setModeDebug();, (*13)
-
Some specific tags have been introduced:, (*14)
-
(CF Exemple 7 & wiki), (*15)
- Determines the orientation, margins left, right, top and bottom, the background image
- nd the background color of a page, its size and position, the footer.
- It is also possible to keep the header and footer of the previous pages,
-
through the attribut pageset="old" (see Example 3 & 4 & wiki), (*16)
-
(CF Example 3 & wiki), (*17)
-
(CF Example 3 & wiki), (*18)
-
(CF wiki), (*19)
- Used to force the display of a section on the same page.
-
If this section does not fit into the rest of the page, a page break is done before., (*20)
-
(CF Examples 0 & 9 & wiki), (*21)
- Can insert barcodes in pdfs, CF Examples 0 and 9
-
the possible types of codebar are alls of TCPDF, (*22)
-
(CF Example 13 & wiki), (*23)
- can insert QRcode 2D barcodes
-
(QR Code is registered trademark of DENSO WAVE INCORPORATED | http://www.denso-wave.com/qrcode/), (*24)
-
(CF Examples 7 & About & wiki), (*25)
- Can insert bookmark in pdfs, CF Example 7 and About.
- It is also possible to automatically create an index at the end of
-
document (CF Example About & wiki), (*26)
-
css property "rotate":, (*27)
- Values : 0, 90, 180, 270
- Works only on div (cf example 8)
Change log:
See on this page: http://html2pdf.fr/en/download, (*28)
Help & Support:
For questions and bug reports, thank you to use only the support link below.
I will answer to your questions only on it..., (*29)
- Programmer: Spipu
- Web Site : http://html2pdf.fr/
- Wiki : http://html2pdf.fr/en/wiki
- Support : http://html2pdf.fr/en/forum
Thanks:
- Olivier Plathey: for have made FPDF
- Nicola Asuni: for the changes he has agreed to make to TCPDF
- yAronet: for hosting support forum
- Everyone who helped me to develop this library and to bring the texts