TCPDF Cell Stretching

Hi Experts,

I am trying to output a HTML table into TCPDF, but one of my columns is for comments. This is related to my other question regarding reducing automatically the font size, and I found within TCPDF a feature called cell stretching (example_004.php, line 80).

My question is within my HTML's td,  how can I implement $pdf->Cell?

For example,
$html .= '<td>' . $pdf->cell????????

Open in new window

Thank you
APD TorontoSoftware DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
I may have only partially answered this in another related question, but I think you're mixing apples and oranges here.  HTML is a semantic markup language.  It knows nothing of document layout.  PDF is a document layout language.  TCPDF is used to produce PDF documents.  It does not use HTML.  My recommendation is to make two different views for your Model-View-Controller application.  One of the Views will render the data in HTML.  The other of the Views will render the data in PDF.  If these two views are completely disconnected from each other, it will be much easier to get each of them right.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
APD TorontoSoftware DeveloperAuthor Commented:
Thank you Ray!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.