Para gerar PDF, coloque a biblioteca FPDF em /lib