_read_me.txt 3.6 KB

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