fix: PDF processing

pull/26/head
Raphaël Vinot 2020-01-13 21:20:58 +01:00
parent f88a0c8291
commit 2fb8db047a
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ class File(FileBase):
def _pdf(self): def _pdf(self):
"""Process a PDF file.""" """Process a PDF file."""
xmlDoc = PDFiD(self.src_path) xmlDoc = PDFiD(str(self.src_path))
oPDFiD = cPDFiD(xmlDoc, True) oPDFiD = cPDFiD(xmlDoc, True)
if oPDFiD.encrypt.count > 0: if oPDFiD.encrypt.count > 0:
self.make_dangerous('Encrypted pdf') self.make_dangerous('Encrypted pdf')