Buy Now
Sign in

Customize tcpdf pdf file

walterbz , May 17 at 07:46
W
walterbz
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
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
W
walterbz
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
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
W
walterbz
I understand now! Thanks
Walter