Ligature issue when converting PDF to text
Author: gargarvinCreated Sep 16, 2022Updated Aug 25, 2026
Labelsis-bugworkflow-text-extraction
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())Source: py-pdf/pypdf