usa http://www.fpdf.org/ ci sono anche esempi e tutorials