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

Append output from dumppdf(1) in more cases. (Closes: #387)

parent 9382ba74
No related branches found
No related tags found
No related merge requests found
Pipeline #712203 passed
......@@ -96,16 +96,18 @@ class PdfFile(File):
def compare_details(self, other, source=None):
xs = []
xs.extend(self.gen_metadata_differences(other))
xs.append(Difference.from_operation(Pdftotext, self.path, other.path))
# Don't include verbose dumppdf output unless we won't see any
# differences without it.
# Include verbose dumppdf output unless we won't see any differences
# without it.
if not any(xs):
xs.append(
Difference.from_operation(Dumppdf, self.path, other.path)
)
# Always preppend metadata differences
xs[:0] = self.gen_metadata_differences(other)
return xs
def gen_metadata_differences(self, 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