LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using multiple epstopdf command (https://www.linuxquestions.org/questions/linux-newbie-8/using-multiple-epstopdf-command-854618/)

ofeyrpf 01-06-2011 08:53 AM

Using multiple epstopdf command
 
Hi,

I've installed epstopdf and can get it to work for one file at a time. But I have about 100 *.eps files which I want to convert to *.pdf using this command. How could I get linux to find all *.eps files in the directory and repeat the command for each converting them to *.pdf?

At the moment the command that works for me is,

$ epstopdf file.eps

And works for one file

Any help would be greatly appreciated.

Thanks,

Shane

Guttorm 01-06-2011 09:02 AM

Hi

This will run epstopdf on all .eps files in current directory and all subdirectories:

Code:

find . -name "*.eps" -exec epstopdf {} \;

ofeyrpf 01-06-2011 09:17 AM

Hi Guttorm,

Thanks for the reply.

I carefully copied and pasted the command into the command line and get

Quote:

find: missing argument to '-exec'
I wonder what I am doing wrong.

Thanks,

Shane

Guttorm 01-06-2011 09:39 AM

Hi

It works here. From the error message you got, it looks like it's missing the \ before the last ;

You could try this, which is another way of writing the same command:

Code:

find . -name "*.eps" -exec epstopdf {} ";"

ofeyrpf 01-06-2011 10:11 AM

That commands works, I think.

I just have some issues with an error,

Quote:

==>Warning: boundingBox not found!
But that should probably be another thread.

Thanks for your help,

Shane

ofeyrpf 01-06-2011 02:03 PM

If anyone else is having problems with the boundingbox converting eps files to pdf this page may be of help

Convert EPS to PDF: problem of bounding box


All times are GMT -5. The time now is 08:03 PM.