# Can or will pdf with MinionPro produced by ps2pdf allow to search for words with ligatures, such as “final”?

This is either a question or an encouragement, depending on the situation. If a pdf typeset with latex and made into a pdf with ps2pdf contains the word "final", searching for that word in the pdf with Acrobat Reader yields no hit.

The reason is that the pdf file is typeset with a "fi" ligature, and the search algorithm does not know that "final" should also search for the "fi" ligature. On the other hand, if the same ps file is distilled with Acrobat Distiller, the search works. Distiller somehow is more capable.

Can this be achieved with ps2pdf already now (it was not possible a few years ago)? Or will it be possible at least one day in the future?

I use the newest 2014 texlive distribution, OSX, the MinionPro font and package with T1 fontenc and utf8 inputenc, the Myriad font, 50 other packages, and work along the dvi -> ps -> pdf route. This is the minimal example:

\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{MinionPro}
\begin{document}
Almost final.
\end{document}


By the way, this MinionPro problem is indeed solved with glyphtounicode.tex for MinionPro if the dvips/ps2pdf route is avoided, and the pdf is produced directly. The problem only appears if intermediate postscript is produced. Therefore another way out, in principle, would be to find successor packages for pstricks and psfrag, which also allow to use my hundreds of eps images, and that work with pdflatex. However, the package experts explained that this is not possible yet.

• If I compile \documentclass{article}\begin{document}final\end{document} with latex-dvips-ps2pdf, the search for final in Adobe Reader is successful. – egreg Jan 22 '15 at 17:16
• I added a minimal example that shows the problem. It seems font-dependent. – Motion Mountain Jan 22 '15 at 17:22
• glyphtounicode.tex is distributed with pdftex as part of the TeXLive distribution. In a standard installation on Linux it is at /usr/local/texlive/2014/texmf-dist/tex/generic/pdftex/glyphtounicode.tex. – musarithmia Jan 22 '15 at 18:01
• Why do you need the dvi -> ps -> pdf route? Can you not use pdfLaTeX or XeLaTeX instead? – karlkoeller Jan 22 '15 at 20:03
• I don't know, but I think I've read that auto-pst-pdf is a package which lets you use pstricks and so in pdfLaTeX. Doesn't it work in this case? – Manuel Jan 26 '15 at 13:32