Loop to convert pdf files into eps

April 2018


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. 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 (https://ccm.net/).
Creating PDF (s) on Ubuntu
How to translate an Adobe Acrobat PDF?