py-pdf/pypdf

Ligature issue when converting PDF to text

Offen

#1.351 geöffnet am 16.09.2022

 (6 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)Python (1.258 Forks)batch import
help wantedis-bugworkflow-text-extraction

Repository-Metriken

Stars
 (6.413 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 8T) (49 gemergte PRs in 30 T)

Beschreibung

I am having a ligature issue with this PDF. 'fi', 'fl' and 'ff' characters are returning NULL

#598 is similar to this issue.

MVCE: Code + PDF

from PyPDF2 import PdfReader

reader = PdfReader("Inspection_redacted.pdf")
for page in reader.pages:
    print(page.extract_text())

PDF

Contributor Guide