py-pdf/pypdf

Ligature issue when converting PDF to text

Ouverte

#1 351 ouverte le 16 sept. 2022

 (6 commentaires) (3 réactions) (0 personne assignée)Python (1 258 forks)batch import
help wantedis-bugworkflow-text-extraction

Métriques du dépôt

Stars
 (6 413 étoiles)
Métriques de merge PR
 (Merge moyen 8j) (49 PRs mergées en 30 j)

Description

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

Guide contributeur