Rikesh
Rikesh

Reputation: 26421

TCPDF weird issue in CakePHP

I am having a formatting issue with PDF generation with TCPDF in CakePHP.

It doesn't show the exact table & div structure as there in HTML.

Does anyone know the solution for it?

Thanks in advance.

Upvotes: 3

Views: 724

Answers (2)

Rikesh
Rikesh

Reputation: 26421

I found my solution by changing my code to clean html into the tcpdf format means by using cell and multicell function of tcpdf.

Refrence : http://www.onemoretake.com/2009/03/09/tcpdf-variable-height-table-rows-with-multicell/

Upvotes: 1

kapil sharma
kapil sharma

Reputation: 9

Code that i m sending u is for creating xls file and u just need to change some header prameter in it.

Just put this code in the head of your html file and it will force u to download automatically.But change the header according to pdf file

Upvotes: 0

Related Questions