fix for encrypted PDFs