Loop to convert pdf files into eps

March 2017


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


Published 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).