Loop to convert pdf files into eps

October 2016


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
pdftops -eps "${file}"

Thanks to jipicy for this tip

Related :

This document entitled « Loop to convert pdf files into eps » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.