py-pdf/pypdf

Ligature issue when converting PDF to text

开放

#1,351 创建于 2022年9月16日

 (6 条评论) (3 个反应) (0 位负责人)Python (1,258 个派生)batch import
help wantedis-bugworkflow-text-extraction

仓库指标

星标
 (6,413 个星标)
PR 合并指标
 (平均合并 8天) (30 天内合并 49 个 PR)

描述

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

贡献者指南