<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hello,</span></div><div><br><span></span></div><div><span>Always be careful with pdf2ps. If one converts PS to PDF, information is lost - this is one of the reasons that the PDF file is usually smaller in size than the PS file. So it is technically not always possible to perfectly reconstruct a PS from a PDF. So be careful, especially if the material is to be printed professionally.</span></div><div><br><span></span></div><div><span>Some tips and tricks that I find useful:</span></div><div><br><span></span></div><div><span>- EPS has a built-in JPEG support. If you use the program "jepg2ps", the resulting EPS will be only marginally larger than the original JPEG file.</span></div><div><span>- Convert EPS to PDF with ps2pdf</span></div><div><span>- Use pdfcrop to cut off irrelevant whitespace from a
 PDF</span></div><div><span>- If you want to use matlab figures (or from a similar software), then saving the output as PS gives you some more control if you want to make a PDF - but at the expense of more work for you. Note that scilab (an open-source and free matlab-like software) has very poor support for EPS and PDF, but it is still workable.</span></div><div><span>- Use pdfpages.sty to manipulate external PDFs directly into your latex document</span></div><div><span>- Use pdftk if you want to do fancy things with a PDF file (merging, splitting, nup printing, etc)</span></div><div><br><span></span></div><div><span>Cheers,</span></div><div><span>Wilfred<br></span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span
 style="font-weight:bold;">From:</span></b> Adam Russell <arussell@cs.uml.edu><br> <b><span style="font-weight: bold;">To:</span></b> xetex@tug.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, 4 May 2012, 3:02<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [XeTeX] how do I embed fonts into a a xelatex generated pdf?<br> </font> </div> <br>On 5/3/12 1:10 PM, <a ymailto="mailto:xetex-request@tug.org" href="mailto:xetex-request@tug.org">xetex-request@tug.org</a> wrote:<br>>> Date: Thu, 3 May 2012 11:08:00 +0200<br>>> From: Zdenek Wagner<<a ymailto="mailto:zdenek.wagner@gmail.com" href="mailto:zdenek.wagner@gmail.com">zdenek.wagner@gmail.com</a>><br>>> To: Unicode-based TeX for Mac OS X and other platforms<<a ymailto="mailto:xetex@tug.org" href="mailto:xetex@tug.org">xetex@tug.org</a>><br>>> Subject: Re: [XeTeX] how do I embed fonts into a a xelatex generated<br>>>
     pdf?<br>>> Message-ID:<br>>>     <CAC1phybAu4bH1TL+yP+<a ymailto="mailto:ExpOhJumnQ1Ms56Gh9mAP-LzdYGZxDQ@mail.gmail.com" href="mailto:ExpOhJumnQ1Ms56Gh9mAP-LzdYGZxDQ@mail.gmail.com">ExpOhJumnQ1Ms56Gh9mAP-LzdYGZxDQ@mail.gmail.com</a>><br>>> Content-Type: text/plain; charset="ISO-8859-2"<br>>><br>>> Short answer: you have to buy Helvetica.<br>>><br>>> Long answer: There are basic 15 PS fonts and basic 35 PDF fonts that<br>>> must be according to the specification available everywhere. However,<br>>> this requirement is broken even in Adobe products (the author of the<br>>> specification) and it is quite common to see different versions of<br>>> Times and Helvetica with different metrics (it cost me some money and<br>>> damaged output to discover this crucial problem). It is therefore<br>>> good (and required by DTP studios and printer
 houses) to embed all<br>>> fonts. These 35 basic fonts are commercial and thus cannot be<br>>> distributed with TeX. There are free replacements (from URW and other<br>>> vendors). Now you have two options:<br>>><br>>> 1. Embed the replacement fonts possibly losing quality<br>>> 2. Do not embed the font and hope that the user has either the<br>>> commercial font or a replacement font that will not be worse.<br>>><br>>> Of course option 1 is better unless you know that the user has the<br>>> commercial font with exactly the same metrics as you. You have to look<br>>> into the manual of your TeX distribution how to instruct it to embed<br>>> all fonts (it is done by updmap-sys in TeX Live). If you want to have<br>>> fonts with better quality, you can consider using TeX Gyre Heros<br>>> instead of Helvetica.<br>>><br>>> Still one problem remains. You may include
 images created by tools as<br>>> gnuplot or inkscape that insert texts in Helvetica but do not embed<br>>> the font. It will need some tweaking depending on the tool.<br>> Ah! That is exactly my problem I now realize. My paper in and of itself<br>> does not use Helvetica but I am using<br>> gnuplot to generate figures. So, I guess I am going with (2). The use of<br>> Helvetica in the figures is so<br>> small that hopefully any difference will be so small as to be<br>> undetectable. I am willing to bet that Helvetica is a<br>> common enough font and gnuplot is a common enough tool that this<br>> shouldn't be an issue. We'll see...<br>> And also, just for the record, I found these directions on embedding<br>> fonts to be very clear:<br>> <a href="http://confsys.encs.concordia.ca/public_files/embeded_fonts.php" target="_blank">http://confsys.encs.concordia.ca/public_files/embeded_fonts.php</a><br>> Thank you
 very much for the help!<br>One final thing. I just discovered a clever workaround.<br>For the entire document run pdf2ps<br>pdf2ps document.pdf<br>and the run this command on the ps file<br>ps2pdf14 -dPDFSETTINGS=/prepress document.ps<br>This seems to work for embedding the fonts without having to regenerate <br>anything!<br><br><br><br>--------------------------------------------------<br>Subscriptions, Archive, and List information, etc.:<br>  <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br><br><br> </div> </div>  </div></body></html>