Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pdf_diff/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ def serialize_pdf(i, fn, top_margin, bottom_margin):
text = []
textlength = 0
for run in box_generator:
if run["text"] is None:
continue

normalized_text = run["text"].strip()

# Ensure that each run ends with a space, since pdftotext
Expand Down