Troubleshooting PDF generation