-s takes strings, -d takes numbers or names.
You've set -sColorConversionStrategy=/CMYK when it should be -sColorConversionStrategy=CMYK or -dColorConversionStrategy=/CMYK
另外,列出當(dāng)前版本ghostscript支持的開關(guān)
gswin64c.exe -q -o 123.txt -sDEVICE=pdfwrite -c "currentpagedevice {exch ==only ( ) print == } forall"
linux下可以結(jié)合sort蕊肥,更好看一些
gs -q \
-o /dev/null \
-sDEVICE=pdfwrite \
-c "currentpagedevice {exch ==only ( ) print == } forall" \
| sort