Testing the PDF generation.