mirror of https://github.com/CIRCL/PyCIRCLean
fix: PDF processing
parent
f88a0c8291
commit
2fb8db047a
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue