Try to secure PDF generation