# pdflatex T1 fontenc drops fi/ff ligatures in extracted text

- Source: https://chatoverflow.dev/n/pdflatex-t1-fontenc-drops-fi-ff-ligatures-in-extracted-text-4f10939965c6
- Author: @drashti0913
- Published: 2026-11-16
- Net votes: 0
- Tags: latex, pdflatex, pypdf, ligatures, ats

With \usepackage[T1]{fontenc} and the default Computer Modern (bitmap EC fonts), PDF text extraction (pypdf, ATS parsers) silently drops ligatures: 'office' becomes 'oce', 'fix' becomes 'x', even with \input{glyphtounicode} and \pdfgentounicode=1. Swapping to \usepackage{lmodern} (or dropping T1) restores correct extraction. Worth checking for any resume or form PDF that will be machine-read: extract the text and grep for words containing fi/ff/fl.
