Graphics, Figures & Tablesepstopdf not working anymore

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
IMB
Posts: 3
Joined: Tue Nov 08, 2016 5:49 pm

epstopdf not working anymore

Post by IMB »

Hello,

I'm using Miktex 2.9 with texmaker and used the epstopdf package. Everything worked fine and I changed nothing, but the conversion of the eps files is not working anymore. Does anyone knows this problem?

I have this in my preamble:

Code: Select all

\usepackage{epstopdf}
\epstopdfsetup{update,prepend,verbose,suffix=-generated} % use suffix because you don't want to accidentally overwrite a file that might have been a pdf source. The epstopdf package manual has more on that.
\DeclareGraphicsExtensions{.eps,.pdf}
\epstopdfDeclareGraphicsRule{.eps}{pdf}{.pdf}{epstopdf --gsopt="-dPDFSETTINGS=/prepress -dAutoFilterColorImages=false -dAutoFilterGrayImages=false -sColorImageFilter=FlateEncode -sGrayImageFilter=FlateEncode -sCompressPages=false -dPreserveHalftoneInfo=true" #1 --outfile=\OutputFile}
And this in the Texmaker settings for pdflatex:
pdflatex -synctex=1 -interaction=nonstopmode --enable-write18 %.tex

I've already tried to change it to:
pdflatex -synctex=1 -interaction=nonstopmode -shell-escape --enable-write18 %.tex

but it didn't help...

Thanks in advance! :)

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: epstopdf not working anymore

Post by Stefan Kottwitz »

Welcome to the forum!

Do you get any error message?

Stefan
LaTeX.org admin
IMB
Posts: 3
Joined: Tue Nov 08, 2016 5:49 pm

epstopdf not working anymore

Post by IMB »

Yes, I get during compiling:
Process started

Sorry, but "MiKTeX EPS-to-PDF Converter" did not succeed.

The log file hopefully contains the information to get MiKTeX going again: C:/Users/buerger/AppData/Local/MiKTeX/2.9/miktex/log/epstopdf.log You may want to visit the MiKTeX project page, if you need help.

But the mentioned log file is empty...

Error message:
! Package pdftex.def Error: File `Graphics/Setup_beschriftet-generated1.pdf' not found.See the pdftex.def package documentation for explanation.Type H <return> for immediate help.... ...textwidth]{Graphics/Setup_beschriftet.eps}

Part of the log-file:
Package epstopdf Info: Source file: <Graphics/Setup_beschriftet.eps>
(epstopdf) date: 2016-08-09 17:32:37
(epstopdf) size: 5634395 bytes
(epstopdf) Output file: <Graphics/Setup_beschriftet-generated1.pdf>
(epstopdf) Command: <epstopdf --gsopt="-dPDFSETTINGS=/prepress -dAu
toFilterColorImages=false -dAutoFilterGrayImages=false -sColorImageFilter=Flate
Encode -sGrayImageFilter=FlateEncode -sCompressPages=false -dPreserveHalftoneIn
fo=true" Graphics/Setup_beschriftet.eps --outfile=Graphics/Setup_beschriftet-ge
nerated1.pdf>
(epstopdf) \includegraphics on input line 77.
runsystem(epstopdf --gsopt="-dPDFSETTINGS=/prepress -dAutoFilterColorImages=fal
se -dAutoFilterGrayImages=false -sColorImageFilter=FlateEncode -sGrayImageFilte
r=FlateEncode -sCompressPages=false -dPreserveHalftoneInfo=true" Graphics/Setup
_beschriftet.eps --outfile=Graphics/Setup_beschriftet-generated1.pdf)...execute
d.
Package epstopdf Info: Result file: <Graphics/Setup_beschriftet-generated1.pdf>
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

epstopdf not working anymore

Post by Stefan Kottwitz »

This line sais that the file was converted successfully:
Package epstopdf Info: Result file: <Graphics/Setup_beschriftet-generated1.pdf>
Can you take a look if that file actually exists now?

I saw though, that it wasn't found (before the conversion I guess), as you mentioned:
! Package pdftex.def Error: File `Graphics/Setup_beschriftet-generated1.pdf' not found.
If you run simply again, and the file exists, it should be found. Otherwise I would try to put the images to the same folder as the main document, instead of the Graphics folder. At least for a try. How is it then?

Stefan
LaTeX.org admin
IMB
Posts: 3
Joined: Tue Nov 08, 2016 5:49 pm

Re: epstopdf not working anymore

Post by IMB »

Sadly, there is no generated pdf file.
Putting the eps to the main folder doesn't help either. :(

Deleting everything except the uspackage statement in the preamble works. But I used the options to gain a better quality of the pictures... so now some of them are not that nice anymore.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

epstopdf not working anymore

Post by Stefan Kottwitz »

As a last resort, you could run epstopdf at the command prompt. This means "Start/Run" or "Start/Ausführen" on Windows, run the program "cmd". You need to change into your document folder, such as by cd C:/Users/buerger/Documents/... (insert your document path here). Then, run (on a single line) this command with options:

epstopdf --gsopt="-dPDFSETTINGS=/prepress -dAutoFilterColorImages=false -dAutoFilterGrayImages=false -sColorImageFilter=FlateEncode -sGrayImageFilter=FlateEncode -sCompressPages=false -dPreserveHalftoneInfo=true" Graphics/Setup_beschriftet.eps --outfile=Graphics/Setup_beschriftet-generated1.pdf

It should produce a pdf file. Doing this, you also may see an error message that may help or provides additional information. What do you get this way?

Stefan
LaTeX.org admin
denshion
Posts: 1
Joined: Thu Apr 30, 2020 2:32 pm

epstopdf not working anymore

Post by denshion »

Hello, everyone.

I had exactly the same problem; posting the solution that worked for me in case that anyone else encounters this problem.

I'm using TeXLive on Windows 10 on 64 bit machine with the epstopdf package; I compile with pdflatex or with latexmk -pdf. Out of nowhere the epstopdf package stopped generating the .eps-converted-to.pdf files and started nagging about absent PDF files for the figures; before that, everything worked fine. The epstopdf command, when run manually, still generated the PDFs sucessfully.

It turned out that for some reason the folder C:\Windows\System32 was not in the PATH environment variable. I discovered that when, while debugging this issue, I wanted to read the epstopdf help and piped it to more. CMD then nagged that more is not recognized as a command, while it obviously should be.
Post Reply