General discussion


How do i carry out a pdf conversion with PHP

By jayzeddy ·
Hi all,

I'm currently trying to generate an online PDF-version of a web
The contents get dynamically generated from the database using
server-sided PHP.
Now I've successfully downloaded,setup and even run the examples such
as the hello.php which seem to be ok.
An example of the link I'm working on is:

The idea is to have a button/link"view as pdf,"that would be clicked
to render the application in PDF.
I'm able to hit my database and generate the content.But how do
I output the content especially in tables as shown on the application?

Anyone who has done a simmilar project to please show me how to go
about it
I'm curently trying to use pDFLIb,but cant do the tables and text formating.Any help?
Thanks in advance.


This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

I've had success with FPDF

by rhowelljr In reply to How do i carry out a pdf ...

I wasn't able to view the link you provided. So, I don't know if FPDF will get you any farther along than pDFLib. But, I used FPDF to support the automatic generation of tabular PDF reports with my SynApp2 web application generator. It works with PHP and MySQL. It's open source PHP code. You could study how it works and apply it to your project, or just use it outright.

Related Discussions

Related Forums