Fix failure to pickle file with AcroForm

This commit is contained in:
James R. Barlow
2018-11-01 20:07:53 -07:00
parent 4ba9e8fe25
commit 1364c63b7c
+1 -1
View File
@@ -803,7 +803,7 @@ class PdfInfo:
self._infile = infile
self._pages, pdf = _pdf_get_all_pageinfo(infile, log=log)
self._needs_rendering = pdf.root.get('/NeedsRendering', False)
self._has_acroform = pdf.root.get('/AcroForm', False)
self._has_acroform = '/AcroForm' in pdf.root
@property
def pages(self):