views:

104

answers:

3

Hi,

I am currently working on a website. Basically when a user searches for something, i should be able to generate the pdf for the each of the search result item. I know one option of fpdf.

Is there something easier than fpdf or some service like if i send the url of my search result page, it sends back the generated pdf to me.

What is the easiest way to do this, what is the easiest option for this?

Thanks

+4  A: 

Have you looked at the Zend Pdf class?

There are a number of ways to generate pdf by using php, but i still think you will need to generate the whole pdf based on the data you want in to add to the pdf. But if you create some good helper classes, you should be able to create the wanted effect!

There is a service called pdfonfly That could do what you want, but you need to check if they provide an api to hook up your results!

code-zoop
+1  A: 

I worked with the FPDF library some time ago. It's entirely written in PHP and requires no installation at all. Just include it and you're ready to go.

The generation of PDFs is pretty simple with it, too.

Techpriester
I answered to do it from scratch however if it is as easy as you say it is, +1
jhs
A: 
jhs