# From: https://stackoverflow.com/questions/30518547/cmyk-overprinting-and-knockout-in-ghostscript bn=$(basename $1 ".pdf") gs -dBATCH -dNOPAUSE -dSAFER \ -sDEVICE=tiffsep \ -sOutputFile=$bn.tif \ $1