Ask Your Question

Import a PDF and preserve ligatures

asked 2018-06-09 08:48:53 +0100

Nemo_bis gravatar image

I have a PDF file generated from Latex (with the ModernCV template). The text contains ligatures such as .

Can I import the PDF in LibreOffice Writer and preserve such characters?

edit retag flag offensive close merge delete


Allegedly, Word is able to and Writer fails: On the bug tracker I only found

Nemo_bis gravatar imageNemo_bis ( 2018-06-09 08:49:28 +0100 )edit

2 Answers

Sort by » oldest newest most voted

answered 2018-06-09 15:59:15 +0100

David gravatar image

updated 2018-06-09 16:03:36 +0100

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!

edit flag offensive delete link more


I don't have the latex source, otherwise I would not be using the PDF as source. Sorry if it wasn't clear.

Nemo_bis gravatar imageNemo_bis ( 2018-12-08 15:16:17 +0100 )edit

answered 2018-06-09 16:13:39 +0100

RGB-es gravatar image

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 @David or recreate the whole document from scratch on Writer: any other option would be too much work.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-06-09 08:48:53 +0100

Seen: 152 times

Last updated: Jun 09 '18