Loop to convert pdf files into eps

April 2017




Issue


I have a folder that contains a lot of pdf files that I want to convert them to .eps. I found how to do this conversion with the command:


 "pdftops -eps [file].pdf"



But how to set up a loop to perform the operation on all my files?

From the directory containing the PDF


for file in *.pdf
do
pdftops -eps "${file}"
done


Thanks to jipicy for this tip

Related


Published by deri58. Latest update on June 5, 2010 at 10:04 AM by deri58.
This document, titled "Loop to convert pdf files into eps," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).