Skip to main content

PdfMaker Custom Function

Custom functions can be added in the PDFMaker module. To insert one use:

SDK::setPDFCustomFunction($label, $name, $params);

$label: the label of the function (it is translated into the PDFMaker module)
$name: the name of the function
$params: array with the names of the function parameters

Registered functions must be saved in php files in modules/PDFMaker/functions/ to be used by the PDFMaker module

To remove the function:

SDK::unsetPDFCustomFunction($name);

$name: the name of the function