Avatar of andieje
andieje
 asked on

generating pdfs in php

Hi

I need some help creating pdfs in php. I have been having nothing but trouble. I have used tdpdf5 and it loses the table of contents. I have tried dompdf but the output looks different in the pdf than the html.

Can anyone advise of a reliable tool for making pdfs? I didnt think it would be this difficult.

Is tcpdf6 worth trying. I cant find any examples or tutorials and it seems to different than tcpdf5.

Thanks in advance
PHP

Avatar of undefined
Last Comment
andieje

8/22/2022 - Mon
Joe Winograd

Haven't used it myself, but TCPDF gets high marks from experts here at EE:

http://www.tcpdf.org/

There are plenty of examples at the site:

http://www.tcpdf.org/examples.php

Regards, Joe
ASKER CERTIFIED SOLUTION
Ray Paseur

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
andieje

ASKER
When i passed the pdf output from tcpdf through a pdf validator it got loads of errors but that was version 5.
I dont really understand what the cells are tcpdf 6, I have been experimenting with mpdf but i have heard good things about tcpdf. Can i just ignore the cells as they are what put me off in the first place.

Thanks
andieje

ASKER
excellent
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck