Monday, April 14, 2014

Creating PDF file from DVI with Embedded Fonts

These instructions are valid for Ubuntu. It may also work in Windows with ghostscript installed.

Use the following commands in order.

  1. dvips -Ppdf -G0 -tletter your_file.dvi 
  2. ps2pdf -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress 
In case you get a segmentation fault. Use the following steps.
  1. dvips -Ppdf -G0 -tletter your_file.dvi
  2. ps2ps
  3. ps2pdf -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress