Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
.tecnick.tcpdf com.tecnick.tcpdf

Files

file  datamatrix.php
 Class to create DataMatrix ECC 200 barcode arrays for TCPDF class.
 
file  pdf417.php
 Class to create PDF417 barcode arrays for TCPDF class.
 
file  qrcode.php
 Class to create QR-code arrays for TCPDF class.
 
file  tcpdf_autoconfig.php
 Try to automatically configure some TCPDF constants if not defined.
 
file  tcpdf_barcodes_1d.php
 PHP class to creates array representations for common 1D barcodes to be used with TCPDF.
 
file  tcpdf_barcodes_2d.php
 PHP class to creates array representations for 2D barcodes to be used with TCPDF.
 
file  tcpdf_colors.php
 PHP color class for TCPDF.
 
file  tcpdf_filters.php
 This is a PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters).
 
file  tcpdf_font_data.php
 Unicode data and encoding maps for TCPDF.
 
file  tcpdf_fonts.php
 Unicode data and font methods for TCPDF library.
 
file  tcpdf_images.php
 This is a PHP class that contains static image methods for the TCPDF class.
 
file  tcpdf_parser.php
 This is a PHP class for parsing PDF documents.
 
file  tcpdf_static.php
 This is a PHP class that contains static methods for the TCPDF class.
 

Classes

class  Datamatrix
 Class to create DataMatrix ECC 200 barcode arrays for TCPDF class. More...
 
class  PDF417
 Class to create PDF417 barcode arrays for TCPDF class. More...
 
class  QRcode
 Class to create QR-code arrays for TCPDF class. More...
 
class  TCPDF2DBarcode
 PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org). More...
 
class  TCPDF_COLORS
 PHP color class for TCPDF .. More...
 
class  TCPDF_FILTERS
 This is a PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters). More...
 
class  TCPDF_FONT_DATA
 Unicode data and encoding maps for TCPDF. More...
 
class  TCPDF_FONTS
 Font methods for TCPDF library. More...
 
class  TCPDF_IMAGES
 Static image methods used by the TCPDF class. More...
 
class  TCPDF_PARSER
 This is a PHP class for parsing PDF documents. More...
 
class  TCPDF_STATIC
 Static methods used by the TCPDF class. More...
 
class  TCPDFBarcode
 PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org). More...
 

Variables

if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER ['DOCUMENT_ROOT'] = str_replace('//', '/', $_SERVER['DOCUMENT_ROOT'])
 
const ENC_ASCII (!defined('DATAMATRIXDEFS')) 0
 ASCII encoding: ASCII character 0 to 127 (1 byte per CW)
 
const ENC_ASCII_EXT 6
 ASCII extended encoding: ASCII character 128 to 255 (1/2 byte per CW)
 
const ENC_ASCII_NUM 7
 ASCII number encoding: ASCII digits (2 bytes per CW)
 
const ENC_BASE256 5
 BASE 256 encoding: ASCII character 0 to 255 (1 byte per CW)
 
const ENC_C40 1
 C40 encoding: Upper-case alphanumeric (3/2 bytes per CW)
 
const ENC_EDF 4
 EDIFACT encoding: ASCII character 32 to 94 (4/3 bytes per CW)
 
const ENC_TXT 2
 TEXT encoding: Lower-case alphanumeric (3/2 bytes per CW)
 
const ENC_X12 3
 X12 encoding: ANSI X12 (3/2 byte per CW)
 
const HEAD_MAGNIFICATION 1.1
 Magnification factor for titles.
 
const K_BLANK_IMAGE '_blank.png'
 Installation path (/var/www/tcpdf/).
 
const K_CELL_HEIGHT_RATIO 1.25
 Height of cell respect font height.
 
const K_SMALL_RATIO 2/3
 Reduction factor for small font.
 
const K_TCPDF_CALLS_IN_HTML false
 If true allows to call TCPDF methods using HTML syntax IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
 
const K_TCPDF_THROW_EXCEPTION_ERROR false
 If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.
 
const K_THAI_TOPCHARS true
 Set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language.
 
const K_TIMEZONE 'UTC'
 Default timezone for datetime functions.
 
const K_TITLE_MAGNIFICATION 1.3
 Title magnification respect main font size.
 
const PDF_AUTHOR 'TCPDF'
 Document author.
 
const PDF_CREATOR 'TCPDF'
 Document creator.
 
const PDF_FONT_MONOSPACED 'courier'
 Default monospaced font name.
 
const PDF_FONT_NAME_DATA 'helvetica'
 Default data font name.
 
const PDF_FONT_NAME_MAIN 'helvetica'
 Default main font name.
 
const PDF_FONT_SIZE_DATA 8
 Default data font size.
 
const PDF_FONT_SIZE_MAIN 10
 Default main font size.
 
const PDF_HEADER_STRING "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org"
 Header description string.
 
const PDF_HEADER_TITLE 'TCPDF Example'
 Header title.
 
const PDF_IMAGE_SCALE_RATIO 1.25
 Ratio used to adjust the conversion of pixels to user units.
 
const PDF_MARGIN_BOTTOM 25
 Bottom margin.
 
const PDF_MARGIN_FOOTER 10
 Footer margin.
 
const PDF_MARGIN_HEADER 5
 Header margin.
 
const PDF_MARGIN_LEFT 15
 Left margin.
 
const PDF_MARGIN_RIGHT 15
 Right margin.
 
const PDF_MARGIN_TOP 27
 Top margin.
 
const PDF_PAGE_FORMAT 'A4'
 Page format.
 
const PDF_PAGE_ORIENTATION 'P'
 Page orientation (P=portrait, L=landscape).
 
const PDF_UNIT 'mm'
 Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].
 

Detailed Description

Variable Documentation

◆ K_BLANK_IMAGE

const K_BLANK_IMAGE '_blank.png'

Installation path (/var/www/tcpdf/).

By default it is automatically calculated but you can also set it as a fixed string to improve performances. URL path to tcpdf installation folder (http://localhost/tcpdf/). By default it is automatically set but you can also set it as a fixed string to improve performances. Path for PDF fonts. By default it is automatically set but you can also set it as a fixed string to improve performances. Default images directory. By default it is automatically set but you can also set it as a fixed string to improve performances. Deafult image logo used be the default Header() method. Please set here your own logo or an empty string to disable it. Header logo image width in user units. Cache directory for temporary files (full path). Generic name for a blank image.