5

I prepared a document in XeLaTeX in Linux, fonts embedded, then I went to a printing guy on windows + lots of Adobe tools, and pdf looks the other way on his machine: some fonts get scaled which results in a slightly deformed layout.

How do You get a portable pdf?

My first thought is to convert pdf to ps with a virtual printer (CUPS in case of linux).

One other possible solution is to embed fonts in the ps resulted:

ps2pdf14 -dPDFSETTINGS=/prepress document.ps

Edit:

MWE:

\documentclass{article}

\usepackage{fontspec}

% fonts:
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}
\setmainfont{DejaVu Sans}
\setsansfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}

\usepackage{fontawesome}

\begin{document}

\faBullhorn test.

\end{document}

In okular:

enter image description here

In Adobe Reader:

enter image description here

You see in Adobe the glyph is larger. How do I process pdf so that it is displayed in the same way in any major pdf viewer?

Edit 2:

The problem with scaled font is solved if I open the pdf and export it to pdf with Master PDF Editor -- but its free version warns me about the watermark (which I actually can't find).

Export to pdf in PDF Shuffler doesn't help.

Printing to pdf in virtual CUPS printer doesn't help. Moreover after piping pdf through CUPS adobe reader doesn't see the glyph at all.

Adobe
  • 3,037
  • 1
    Have you tested the PDF produced by XeLaTeX. Are all the fonts embedded. Adobe Reader and pdfinfo can be helpful. Can you provide a bit more details about looks the other way on his machine. How do you detect a slightly deformed layout? – daleif Oct 14 '13 at 12:07
  • I have font awesome symbols, and on other machine the size of the symbols is changed: they are larger and overlap with other characters. After prepress of ps2pdf I'm sure that all fonts are embedded. I visited the guy again but he already left home. So I wait for tommorrow. – Adobe Oct 14 '13 at 12:14
  • Unless "the printing guy" can show you a preflight report of Adobe Acrobat with errors in the pdf, I would simply go to another "printing guy". – Martin Schröder Oct 15 '13 at 17:28
  • 2
    Related http://tex.stackexchange.com/q/134121/729. – خالد حسني Oct 17 '13 at 10:06

1 Answers1

1
ps2pdf14 -dPDFSETTINGS=/prepress input.pdf output.pdf

solves the problem of the scaled font.

Adobe
  • 3,037