# Libertine fonts: spaces in PDF files

I am having trouble with the "libertine" font package using TexLive 2014. A PDF file generated will display properly, including interword spaces, but when I save from Acrobat to some other format (such as .txt or .rtf) there are no interword spaces. The only spaces appear where lines in the PDF file are broken. This is true with pdflatex and lualatex, with T1 and OT1 font encoding, and with different versions of Acrobat.

I don't have this problem with other fonts, including CM and Charter. Is there a simple fix for this?

Edited to include this code example:

\documentclass{article}
\usepackage{libertine}
\usepackage{lipsum}
\setlipsumdefault{1}
\begin{document}
\lipsum
\end{document}

• Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – user31729 Jul 20 '14 at 21:58
• Would you please accept the answer of egreg, if \pdfinterwordspaceon answers your question? I'm really interested: tex.stackexchange.com/q/186553/4736 – Keks Dose Jul 21 '14 at 12:27

This is perhaps one of the cases where the new primitive

\pdfinterwordspaceon


can be useful. If I run

\documentclass{article}

\pdfinterwordspaceon

\usepackage{libertine}
\usepackage{lipsum}
\setlipsumdefault{1}
\begin{document}
\lipsum
\end{document}