Clean up PDF generation