Question: I need to create a PDF or Word file filled with contents from my database. Then the customer need to download that file. All this should happend when customer click on link.

Anyone have any idea?

Answer: 
[dompdf](http://code.google.com/p/dompdf/) is your best bet
Got one more: [FPDF](http://www.fpdf.org/)

Hello World:

```
<?php
 require('fpdf.php');

 $pdf = new FPDF();
 $pdf->AddPage();
 $pdf->SetFont('Arial','B',16);
 $pdf->Cell(40,10,'Hello World!');
 $pdf->Output();
?>

```

Taken from: [FPDF Tutorial 1](http://www.fpdf.org/en/tutorial/tuto1.htm)