Re: dvipdfm fails to convert .eps images

"Jeff E. Lewis" <[email protected]>
Newsgroups gmane.comp.tex.miktex
Message-ID <[email protected]>
At 03:22 AM 8/8/2011, you wrote:
>From: "George N. White III" <[email protected]>
>Subject: Re: [MiKTeX] dvipdfm fails to convert .eps images
>
>ghostscript may require -dNOSAFER:
><http://tex.stackexchange.com/questions/13359/xelatex-compilation-of-pstricks-fails>



This works!

There are two working solutions for %R\dvipdfm\config\dvipdfmx.cfg :

1. ps2pdf:

%% insert -dNOSAFER and change %i %o to \"%i\" \"%o\"
D  "ps2pdf -dCompatibilityLevel=%v -sPAPERSIZE=a0 -dNOSAFER 
-dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode 
-dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode \"%i\" \"%o\""

2. mgs:

%% Use MiKTeX Ghostscript with -dNOSAFER:
%% insert -dNOSAFER and change %i %o to \"%i\" \"%o\"
D  "mgs.exe -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -dNOSAFER -sDEVICE=pdfwrite 
-dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false 
-dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false 
-dColorImageFilter=/FlateEncode -dUseFlateCompression=true 
-sOutputFile=\"%o\" \"%i\" -c quit"

N.B. I use change %i %o to \"%i\" \"%o\ in case the .eps has spaces in the 
file name (which is to be avoided!).

Best regards,
Jeff E. Lewis


Prof. Jeff E. Lewis
Professor of Mathematics, Emeritus
Honors College Associate Dean for Academic Affairs, Emeritus
Tel: Office: +1-312-413-9586, Home (preferred): +1-312-421-4394, TrustFax: 
+1-866-571-9921
e-mail: [email protected]
http://www.math.uic.edu/~lewis/


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.