Use pdfbox snapshot for more robust pdfing