Skip to content
Snippets Groups Projects
Commit e4712c86 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Print a potentially-helpful message if the PyPDF2 module is not installed (re....

Print a potentially-helpful message if the PyPDF2 module is not installed (re. ##92)
parent bf52b1b0
No related branches found
No related tags found
No related merge requests found
Pipeline #114594 passed
......@@ -45,7 +45,11 @@ class PdfFile(File):
def compare_details(self, other, source=None):
xs = []
if PyPDF2 is not None:
if PyPDF2 is None:
self._comments.append(
"Installing the 'PyPDF2' package may produce a better output."
)
else:
difference = Difference.from_text(
self.dump_pypdf2_metadata(self),
self.dump_pypdf2_metadata(other),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment