I have a troff document (manpage) with UTF-8 characters and I am trying to convert it to a PDF. However, when using the -Tpdf option, the PDF generated does not show the correct characters. This is the command I am using:
groff -k -Tutf-8 -pet -Tpdf -mandoc filename.1 > filename.pdf
Examples of what goes wrong:
"Používá" becomes "Pou3⁄4ívá"
"překladač" becomes "pøekladaè"
"prováděných" becomes "provádìných"
"rozšířením" becomes "roz1íøením"
How to do it correctly?