py-pdf/pypdf

Ligature issue when converting PDF to text

オープン

#1,351 opened on 2022/09/16

 (6 件のコメント) (3 件のリアクション) (0 人の担当者)Python (1,258 件のフォーク)batch import
help wantedis-bugworkflow-text-extraction

Repository metrics

Stars
 (6,413 個のスター)
PR merge metrics
 (平均マージ 8d) (30d で 49 merged PRs)

説明

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

コントリビューターガイド