more debugging on PDF generation