You are here

README.txt in TCPDF 7

Same filename and directory in other branches
  1. 8 README.txt
TCPDF is a wrapper module for the popular TCPDF library. It is meant to use by
module developers.

In most cases it is enough to get a TCPDFDrupal instance with tpdf_get_instance, and
use it as it were a normal instance of TCPDF class. In order to achieve that, some
extra functionality were added to the library. Every new function and propety has
the "drupal" prefix to prevent any accidental override, and avoid breaking the
compatibility to the original class.

DrupalInitialize() is a multifunctional method of TCPDFDrupal and provides an
easy way to set some common variables of the tcpdf document, like title or keywords.
It is also possible to create a Header or a Footer for the document with it.

If it is still necessary to extend the TCPDF class, it is possible tell tpdf_get_instance()
to make an instance of a custom class instead of TCPDFDrupal. This class should extend TCPDFDrupal.

Note that the latest TCPDF version that this module was tested with is 6.0.021.
While in most cases it should work with later versions, if you encounter any
issues, and you are using a newer version of TCPDF, try downgrading it.

File

README.txt
View source
  1. TCPDF is a wrapper module for the popular TCPDF library. It is meant to use by
  2. module developers.
  3. In most cases it is enough to get a TCPDFDrupal instance with tpdf_get_instance, and
  4. use it as it were a normal instance of TCPDF class. In order to achieve that, some
  5. extra functionality were added to the library. Every new function and propety has
  6. the "drupal" prefix to prevent any accidental override, and avoid breaking the
  7. compatibility to the original class.
  8. DrupalInitialize() is a multifunctional method of TCPDFDrupal and provides an
  9. easy way to set some common variables of the tcpdf document, like title or keywords.
  10. It is also possible to create a Header or a Footer for the document with it.
  11. If it is still necessary to extend the TCPDF class, it is possible tell tpdf_get_instance()
  12. to make an instance of a custom class instead of TCPDFDrupal. This class should extend TCPDFDrupal.
  13. Note that the latest TCPDF version that this module was tested with is 6.0.021.
  14. While in most cases it should work with later versions, if you encounter any
  15. issues, and you are using a newer version of TCPDF, try downgrading it.