Conversion ToolsConversion of EPS Files to PDF in different Folder

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
Post Reply
ckaeel
Posts: 6
Joined: Mon May 31, 2010 9:26 pm

Conversion of EPS Files to PDF in different Folder

Post by ckaeel »

I'm using the following commands to convert EPS files to PDF.

Code: Select all

Code, edit and compile here:
\DeclareGraphicsExtensions{.pdf,.jpg,.png}
\usepackage{epstopdf}
\epstopdfsetup{outdir=./convertedpics/}
\epstopdfDeclareGraphicsRule{.eps}{pdf}{.pdf}{ps2pdf -dEPSCrop -dPDFSETTINGS=/printer -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true #1 \OutputFile}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
In this way I can use PDFLaTeX and I don't care about the type of figures: EPS, PDF, PNG, etc.

Everything works fine on a machine (Win 7 pro) with TexnicCenter 1.0 + MiKTeX 2.9 x32 (which is an older version without the latest updates; I'm not administrator on that machine so I can't do any update).

On my personal PC (Win 7 pro) with TexnicCenter 1.0 + MiKTeX 2.9x32 (with the latest updates) the conversion doesn't work:

Code: Select all

! Package pdftex.def Error: File `./convertedpics/TESTfigure-eps-converted-to.pdf' not found.
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I have reinstalled both MiKTeX and TexnicCenter and still it doesn't work. Windows UAC is disabled, COMODO (with defence+) is disabled too. When I remove the period from ".eps", it works but it takes only the "-dEPSCrop" argument; the other arguments are not considered, and so the fonts aren't embedded.

I have also tried:
  • to move the project files to another partition, thinking that it may be a problem with the path.
  • installing TeXnicCenter x64 + MiKTeX 2.9 x64 (which is the current configuration) and the problem persist.
I have no other ideas left. If you can test this command on your PC, please let a reply.
Last edited by Stefan Kottwitz on Sun Feb 10, 2013 5:25 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
TikZ book
ckaeel
Posts: 6
Joined: Mon May 31, 2010 9:26 pm

Conversion of EPS Files to PDF in different Folder

Post by ckaeel »

if I use :

Code: Select all

\epstopdfDeclareGraphicsRule{.eps}{pdf}{.pdf}{ps2pdf -dEPSCrop #1 \OutputFile}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
it removes the original EPS file with a 3kB one :shock:.
Is this the correct way to use epstopdf package, or did I do something wrong ?
ckaeel
Posts: 6
Joined: Mon May 31, 2010 9:26 pm

Re: Conversion of EPS Files to PDF in different Folder

Post by ckaeel »

problem solved
emroz92
Posts: 1
Joined: Mon May 11, 2015 8:35 pm

Re: Conversion of EPS Files to PDF in different Folder

Post by emroz92 »

Hi Chakeel,
I am running the same problem now. Could you please tell me how to get around the error message.

Thanks in advance.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Conversion of EPS Files to PDF in different Folder

Post by Johannes_B »

Hi and welcome,
i don't think the user will come here again to check up on the question.
We have enough space for many manny more question, i would suggest you start a new topic and we start analyzing from scratch, just for you. ;-)

Please try with a very minimal example first. If this does not work, please share the example and the log-file with us.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply