class Pdf extends TCPDF

PDF export base class providing basic configuration.

Constants

PMA_PDF_FONT

PDF font to use.

Properties

$footerset
$Alias

Methods

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

Constructs PDF and configures standard parameters.

Footer()

No description

void
setAlias(string $name, string $value)

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

void
_putpages()

Improved with alias expanding.

Error($error_message = '')

No description

void
download(string $filename)

Sends file as a download to user.

Details

at line 49
__construct(string $orientation = 'P', string $unit = 'mm', string $format = 'A4', boolean $unicode = true, string $encoding = 'UTF-8', boolean $diskcache = false, boolean $pdfa = false)

Constructs PDF and configures standard parameters.

Parameters

string $orientation page orientation
string $unit unit
string $format the format used for pages
boolean $unicode true means that the input text is unicode
string $encoding charset encoding; default is UTF-8.
boolean $diskcache if true reduce the RAM memory usage by caching temporary data on filesystem (slower).
boolean $pdfa If TRUE set the document to PDF/A mode.

Exceptions

Exception

at line 111
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

at line 132
void _putpages()

Improved with alias expanding.

Return Value

void

at line 151
Error($error_message = '')

Parameters

$error_message

at line 166
void download(string $filename)

Sends file as a download to user.

Parameters

string $filename file name

Return Value

void