# Cannot copy letters with diacritics from pdflatex PDF

I have problem with copying text from PDF file.

I am using these packages in my document:

``````\usepackage[slovak]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
``````

However when I generate PDF file, it doesn't allow me to copy slovak characters. For example copying this

``````nemožné k nim pristupovať
``````

results in

``````nemoºné k nim pristupova´
``````

Do you have any idea how to solve it?

-
Which text editor do you use? And, is it capable of displaying utf8-encoded glyphs? – Mico May 30 '12 at 19:08

Adding package `lmodern` solved my problem:

``````\usepackage{lmodern}
``````
-

With reference to page 7 in the MinioPro-manual, to make figures and ligatures searchable, you need to enable `glyphtounicode` translation and load the default mapping table:

``````\input{glyphtounicode}
\pdfgentounicode=1
``````

`glyphtounicode` was included in my MikTeX-distribution, but if it is not included in yours, you can find it at Sarovar.

-