Re: dvipdfm fails to convert .eps images

"Jeff E. Lewis" <[email protected]>
Newsgroups gmane.comp.tex.miktex
Message-ID <[email protected]>
The default dvipdfmx.cfg contains:

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

This works "manually" specifying %o and %i -- but within dvipdfm results in 
an error message
** WARNING ** Filtering file via command -->mgs.exe -q -dNOPAUSE -dBATCH 
-sPAPER
SIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false
-dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false 
-dColorImageFilter=
/FlateEncode -dUseFlateCompression=true 
-sOutputFile="C:/Users/jlewis/AppData/Lo
cal/Temp/mik63C2.tmp" "C:/docs/jlewis/math165/maple/165avgprofit1.eps" -c 
quit<-
- failed.
** WARNING ** Image format conversion for 
"C:/docs/jlewis/math165/maple/165avgpr
ofit1.eps" failed...
** WARNING ** pdf: image inclusion failed for "./maple/165avgprofit1.eps".
** WARNING ** Failed to read image file: ./maple/165avgprofit1.eps
** WARNING ** Interpreting special command PSfile (ps:) failed.
** WARNING ** >> at page="1" position="(198, 299.56)" (in PDF)
** WARNING ** >> xxx "PSfile=./maple/165avgprofit1.eps llx=20 lly=118 
urx=575 ur
y=673"

A HACKED SOLUTION:

The only thing which I could get to work within dvipdfm was

%% ImageMagick:
%% Easiest way to support various file formats.
%D  "convert %i epdf:%o"
D  "c:/ImageMagick-6.7.1-2/convert.exe %i epdf:%o"

Also works:
D  "c:/ImageMagick-6.7.1-2/convert.exe \"%i\" epdf:\"%o\""

Full path is necessary to avoid conflict with Windows "convert"

Also works:
D  "\"c:\\ImageMagick-6.7.1-2\\convert.exe\" \"%i\" epdf:\"%o\""


I also tried ps2pdf14 with no success:

D "ps2pdf14  %i %o "
and
D "ps2pdf14 \"%i\" \"%o\" "



I think this a "bug" and, if so, the smart people who maintain MiKTeX will 
find a way to use divpdfm within MiKTeX without installing ImageMagick.


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.