class Pdf extends TCPDF (View source)

PDF export base class providing basic configuration.

Constants

PMA_PDF_FONT

PDF font to use.

Properties

array $footerset
array $alias

Methods

__construct(string $orientation = 'P', string $unit = 'mm', string $format = 'A4', bool $unicode = true, string $encoding = 'UTF-8', bool $diskcache = false, false|int $pdfa = false)

Constructs PDF and configures standard parameters.

void
Footer()

This function must be named "Footer" to work with the TCPDF library

void
setAlias(string $name, string $value)

Function to set alias which will be expanded on page rendering.

void
_putpages()

Improved with alias expanding.

never
Error(mixed $msg = '')

Displays an error message

Details

__construct(string $orientation = 'P', string $unit = 'mm', string $format = 'A4', bool $unicode = true, string $encoding = 'UTF-8', bool $diskcache = false, false|int $pdfa = false)

Constructs PDF and configures standard parameters.

Parameters

string $orientation

page orientation

string $unit unit
string $format

the format used for pages

bool $unicode

true means that the input text is unicode

string $encoding

charset encoding; default is UTF-8.

bool $diskcache

DEPRECATED TCPDF FEATURE

false|int $pdfa

If not false, set the document to PDF/A mode and the good version (1 or 3)

Exceptions

Exception

This function must be named "Footer" to work with the TCPDF library

Return Value

void

void setAlias(string $name, string $value)

Function to set alias which will be expanded on page rendering.

Parameters

string $name

name of the alias

string $value

value of the alias

Return Value

void

void _putpages()

Improved with alias expanding.

Return Value

void

never Error(mixed $msg = '')

Displays an error message

Parameters

mixed $msg

the error message

Return Value

never