GeneralEPS files not visible in PDF

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
warzywo
Posts: 3
Joined: Mon Apr 28, 2008 9:05 pm

EPS files not visible in PDF

Post by warzywo »

Hi there,
I'm using LEd and TexLive2007.
When i try to include some graphics (*.eps) into my document:

Code: Select all

...
\usepackage{graphicx}
\usepackage{epsfig}
...
...
\begin{figure}[h]
\begin{center}
\includegraphics[scale=0.3]{alg1.eps}
\caption{\label{r1}drawing description.}
\end{center}
\end{figure}
...
and i build whole project, DVI file is ok - there is some (grayscale?) picture, but when i try to convert to pdf
(DVI->PDF),i get following error:

Code: Select all

[1(.//alg1.eps<PS>
Version of PDF file (1.4) is newer than version limit specification.
pdf_open: Not a PDF 1.[1-3] file
Corrupt PDF file?
)
pdf: image inclusion failed for (alg1.eps).
]

and of course there is nopicture in PDF :?
What's about this PDF version ?? if there is any limit how can i change it ?
Could You help me please...

Thanks !

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Re: EPS files not visible in PDF

Post by Stefan Kottwitz »

Hi warzywo,

welcome to the LaTeX Community board!
Do you use dvipdfm? Perhaps it could be changed in its configuration. Can you post its configuration file? The path may look like C:\TeXLive2007\texmf-var\dvipdfm\config\config.
Alternatively you could try dvips together with ps2pdf.

Stefan
LaTeX.org admin
warzywo
Posts: 3
Joined: Mon Apr 28, 2008 9:05 pm

EPS files not visible in PDF

Post by warzywo »

Ok, here comes the config file ;)

Code: Select all

% dvipdfm config for TeXLive 6. SPQR 2001/06/29
%
% Distiller template examples.  Uncomment
% the appropriate one, or (preferably) create your own.
% Put %i in the command line where the input file name should go.
% Put %o in the command line where the output file name should go.
% (dvipdfm must be able to supply the output file name to your
% command line)
% Put %b in the line somewhere if you want to specify the
% "base" name of the input file, e.g., "foo" instead of "foo.eps"
%
% Note that it's probably a good idea to fully qualify
% the paths so you can be sure what you are running

% The following line works with Frank Siegert's pstill
% D "/usr/local/bin/pstill -c -o %o %i"

% The following line works with Sebastian Rahtz' GhostScript wrapper
% script called epstopdf
% D "cat %i | gs -q -sDEVICE=pdfwrite -dUseFlateCompression=false -sOutputFile=%o - -c quit"
D "epstopdf --outfile=%o --nocompress %i"

% The following line works with GhostScript
% D "gs -q -sPAPERSIZE+a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.2 -dUseFlateCompression=true -sOutputFile=%o %i -c quit"
% The following line works on compressed or uncompressed postscript with GhostScript
%D "zcat -f %i | gs -q -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.2 -dUseFlateCompression=true -sOutputFile=%o - -c quit"

% The following line works with Adobe Acrobat Distiller
% D "/usr/local/bin/distill -quiet -pairs %i %o"

% Set default paper size here
p a4

% The "g" option specifies the amount to "grow" annotations by
% Many TeX macro pages set the annotation bounding box equal
% to the TeX box that encloses the material.  That's not always
% what you want
g 1

% PDF version stamp to use in output file and max version of files
% allowed to be included (2 for 1.2, 3 for 1.3)
V 2
%
% Font map files (managed by dvipdfm)
%
% For correct searching / text extraction:
f cm-dvipdfm-fix.map
%
f dvipdfm.map
V 2, 3 max. but as i can see i will need 1.4 :? or not ? :)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

EPS files not visible in PDF

Post by Stefan Kottwitz »

Hi warzywo,

changing that line to V 4 may work, just try it. I've seen a similar problem here, where changing V 2 to V 3 solved the same problem with pdf version 1.3.

Stefan
LaTeX.org admin
warzywo
Posts: 3
Joined: Mon Apr 28, 2008 9:05 pm

Re: EPS files not visible in PDF

Post by warzywo »

cool it works :D !
And now if i have .eps file with some gradient color and in pdf there is normal color - it depends on the editor .eps file was created with ? Am i thinking right ?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Re: EPS files not visible in PDF

Post by Stefan Kottwitz »

Hi warzywo,

I have no idea yet what happened to the color. Perhaps you could show the eps and pdf file, give a link or post them as attachment.

Stefan
LaTeX.org admin
ruchir_iit
Posts: 13
Joined: Tue Apr 21, 2009 9:14 am

Re: EPS files not visible in PDF

Post by ruchir_iit »

Hi,

I am having the same problem using WinEdt and Miktex 2.7.

Can anyone resolve this?

Ruchir
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Re: EPS files not visible in PDF

Post by Stefan Kottwitz »

Hi Ruchir,

the original problem of the topic author has been solved. Did you try the solution?
Is your problem exactly the same, do you get the same error message like written in the first post of this topic? If not, then tell us more details like error messages and perhaps post your .log file as attachment.

Stefan
LaTeX.org admin
ruchir_iit
Posts: 13
Joined: Tue Apr 21, 2009 9:14 am

EPS files not visible in PDF

Post by ruchir_iit »

Hi Stefan,

Thank you for a prompt reply.

I looked at the error message. It is not the same. I've included the error below for one particular figure,
other errors were similar. I am also attaching the log file.

Thanking you,
Ruchir

Code: Select all

Error: /undefinedfilename in (Fig1.eps)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push
Dictionary stack:
   --dict:1151/1684(ro)(G)--   --dict:0/20(G)--   --dict:70/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
MiKTeX GPL Ghostscript 8.60: Unrecoverable error, exit code 1


Number following version specification is out of range

[1][2(Fig1.eps<PS>
mgs.exe -q -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.2 -dUseFlateCompression=true -dNOPAUSE -sOutputFile="C:\DOCUME~1\g0700230\LOCALS~1\Temp\mik10A.tmp" "Fig1.eps" -c quit

Conversion via ->mgs.exe -q -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.2 -dUseFlateCompression=true -dNOPAUSE -sOutputFile="C:\DOCUME~1\g0700230\LOCALS~1\Temp\mik10A.tmp" "Fig1.eps" -c quit<- failed
)
pdf: image inclusion failed for (Fig1.eps).
Attachments
Log_file.log
(7.93 KiB) Downloaded 422 times
Post Reply