Customize tcpdf pdf file

walterbz 17 May, 2018
Hi all,
is there a way to customize the output of the pdf file generated by tcpdf action?
I want to remove the header and footer line and also add a logo in header.
It seems that only the parameters in advanced tab of the tcpdf actions are modifiable, but I need more control on the output.
Thanks in advance.
Walter
GreyHead 17 May, 2018
Hi Walter,

You can do a limited amount using the TCPDF action but if you want full control then you will need to use a PHP action and access the TCPDF library directly.

Bob
walterbz 17 May, 2018
Hi Bob,
thanks for your answer.
I tried to use:
$pdf->SetPrintHeader(false);

in a php action just before the tcpfd action but it returns an error:
Fatal error: Call to a member function SetPrintHeader() on null in ...

It seems tha $pdf is not the correct object to call.

What should I use?
Thanks
Walter
GreyHead 18 May, 2018
Hi Walter,

Sorry if I wasn't clear - you would need to take out the TCPDF action and build the whole PDF using a Custom PHP action.

I don't think that there is any way of adding TCPDF commands while using the TCPDF action.

Bob
walterbz 18 May, 2018
I understand now! Thanks
Walter
This topic is locked and no more replies can be posted.