Ask Your Question

# Import a PDF and preserve ligatures

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 close merge delete

## Comments

Allegedly, Word is able to and Writer fails: https://workplace.stackexchange.com/a... On the bug tracker I only found https://bugs.documentfoundation.org/s...

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

## 2 Answers

Sort by » oldest newest most voted

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!

more

## Comments

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

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

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.

more

## Stats

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

Seen: 521 times

Last updated: Jun 09 '18