美文网首页
ghostscript参数使用上,-s与-d的区别

ghostscript参数使用上,-s与-d的区别

作者: 叶迎宪 | 来源:发表于2024-05-14 15:05 被阅读0次

-s takes strings, -d takes numbers or names.

You've set -sColorConversionStrategy=/CMYK when it should be -sColorConversionStrategy=CMYK or -dColorConversionStrategy=/CMYK

另外,列出当前版本ghostscript支持的开关
gswin64c.exe -q -o 123.txt -sDEVICE=pdfwrite -c "currentpagedevice {exch ==only ( ) print == } forall"

linux下可以结合sort,更好看一些

 gs -q                      \
    -o /dev/null            \
    -sDEVICE=pdfwrite       \
    -c "currentpagedevice {exch ==only ( ) print == } forall" \
 | sort

相关文章

网友评论

      本文标题:ghostscript参数使用上,-s与-d的区别

      本文链接:https://www.haomeiwen.com/subject/vovmfjtx.html