http://www.fpdf.org/

Use that class.