I need to create a PDF or Word file filled with contents from my database. Then the customer need to download that file. All this should happend when customer click on link.
Anyone have any idea?
Just clone the GitHub repository or you can also download directly from GitHub. Then you can import this library on your PHP file and use the library function. This library allows you modification while converting HTML pages into PDF.
TCPDF is based on FPDF and adds a few more methods, as you observed. I just checked my code and the methods I'm using in TCPDF that aren't available in FDPF are SetCellPadding , SetAlpha , WriteHTML and WriteHTMLCell .
I have used TCPDF with much success to generate PDF files programatically using PHP.
And to generate word documents: http://www.phpdocx.com/ (this is a paid solution).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With