I have a PDF file generated from Latex (with the ModernCV template). The text contains ligatures such as ff
.
Can I import the PDF in LibreOffice Writer and preserve such characters?
I have a PDF file generated from Latex (with the ModernCV template). The text contains ligatures such as ff
.
Can I import the PDF in LibreOffice Writer and preserve such characters?
Allegedly, Word is able to and Writer fails: https://workplace.stackexchange.com/a/113665/34408 On the bug tracker I only found https://bugs.documentfoundation.org/show_bug.cgi?id=58941
My suggestion would be to use the excellent Pandoc to convert your LaTeX file into an ODT.
Ligatures (as I understand it) depend on the font’s encoding and capabilities. If you use something like Khaled Hosny’s superb Libertinus fonts (tweaked versions of Linux Libertine and Biolinum), your ligatures will “automatically” work in LibreOffice Writer. There are, of course, other font options if you prefer.
(The bug report you linked in the comment to your question is a very old one, and open type features have been working nicely in Writer for some time now.)
To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!
I don’t have the latex source, otherwise I would not be using the PDF as source. Sorry if it wasn’t clear.
If I pick a XeTeX generated PDF with text containing ligatures and open it on a PDF viewer (I use Okular), select some text, copy and paste on Writer, the ligatures are copied without problems, but that’s because the original document uses OpenType fonts. If the PDF was generated using LaTeX and metafont, conversion would not be that easy.
Generally speaking, converting PDF to anything is a bad idea, so you need to either translate the original .tex file to .odt as suggested by @dajare or recreate the whole document from scratch on Writer: any other option would be too much work.