Export As .pdf 06.07.08
export as .pdf
I need a script that exports dynamic data (mysql records) to a pdf file. I think FPDF would be best, but
that is negotiable.
There are a few extra requirements:
* Some extra dynamic variables (not hard coded)
- margins (top, left, right, bottom) in mm
- number of columns 1, 2 or 3
- font color, size
- Page header and footer
* expand over multiple pages if necessary
* commented scripting
* error output
* compatible with all major browsers
* forced download (not shown in browser)
* generation of the .pdf is done inside ssl
* 3 different export possibilities:
- factsheet (one record with picture/photo, 1 column))
- list (1 column list of all records)
- labels ( 1 or 2 or 3 column list of all records)
This will be based on $_POST data.
I just need a working example, no implementation. I will provide a simple example mysql db dump with data and a list of variables.



