I have a problem when saving a PDF using Preview.
I create a document using XeLaTeX and the document works fine just after it is created, it looks good, it can be searched, etc. The problem comes when I save the document using preview. For example if I add a note, or highlight something and save the document, it automatically losses all text information.
It can still be opened and looks good, but it cannot be searched any more. In addition, if I try to copy a part of the text all I get are some strange characters that look like a small square with a face on it.
If I do the same procedure (i. e. open, highlight some text, and save) using acrobat PDF reader, the file is still readable both in acrobat and preview.
It has to be fonts related, since it only happens when I use XeLaTeX or LaTeX with some specific fonts, but not with all of them.
Any idea of what can be the reason?
The problem can be reproduced creating a file with the code below and highlighting and saving with Preview.
Code: Select all
\documentclass{report}
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[Mapping=tex-text]{Courier}
\setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Courier}
\setmonofont[Scale=MatchLowercase]{Courier}
\begin{document}
Example test.
\end{document}
Thanks,