TCPDF How custome css ?

bkgraf 05 Jun, 2019
Hello,

My Name is Alejandra (Sorry for my english, I hope make me understand). Please I need know how to solved the next:

I've tried to make a custome pdf, I mean, TCPDF create a simple pdf, but I need make it more professional, more "corporative".
I need put a logo, and if is possible a head with a custome style.

I search in any places (here, in the forum an other sites) but I can't find documentation about this.
And, I try find the php file (the principal file or php that create a pdf), in the directory to try change it but can't find it.
I only find this folders /libraries/cetcpdf/tcpdf but I don't know much about php, please healp me.

Can you take a look to the proyect, and download pdf file from here: http://bit.ly/2WgcYe3
healyhatman 05 Jun, 2019
The TCPDF action can only do very basic CSS.
https://stackoverflow.com/questions/11395171/why-does-tcpdf-ignore-my-inline-css

You should be able to add your image in very easily, set its size and position manually.

Also the files you're looking for are those ones you found.
bkgraf 06 Jun, 2019
Hi,
I know that TCPDF accept basic CSS, but look this documentation about this topic https://tcpdf.org/examples/example_003/ here mentionet how change header and footer, but I don't know where find the file to change it. they mentioned this $image_file = K_PATH_IMAGES.'logo_example.jpg';

I supossed that K_PAHT_IMAGES it must be a directory or folder?, but really I don't understand how or where put or save the image to make a call, and I Neither be which .php file change ...

TCPDF How custome css ? image 1

I'm sorry but is that I don't know much about php, the only that I know is that, is possible make the change that I need, just I don't know how do it.
healyhatman 06 Jun, 2019
Don't make any changes to any of the PHP files.

Put html in the TCPDF action, not PHP. So standard IMG tags and such
GreyHead 07 Jun, 2019
Hi bkgraf,

I see from Max's email that the latest release allows you to turn off the Header and Footer. You can then build your TCPDF content in a PHP action and include the result in the TCPDF action. I think that should work OK.

Bob
healyhatman 07 Jun, 2019
Except they don't know how to use PHP. Just using HTML in the action is probably the better option.
bkgraf 07 Jun, 2019
Thank you guys, I try to disable the Header and Footer, and use HTML to put any IMAGE, and I tell you what happends.
This topic is locked and no more replies can be posted.