如何解决ghostscript 不将 sRGB PDF 转换为 CMYK
问题
根据各种讨论的建议(见下文),我尝试使用 ghostscript 将 sRGB 色彩空间(由 Inkscape 生成)中的 PDF 文件转换为 PDF/X-1a 文件,在 CMYK 色彩空间中。
我使用的命令如下:
gs -dBATCH -dNOPAUSE -dPDFA -sDEVICE=pdfwrite \
-sDefaultCMYKProfile=/usr/share/color/icc/colord/SWOP_TR005_coated_5.icc \
-sOutputICCProfile=/usr/share/color/icc/colord/SWOP_TR005_coated_5.icc \
-sProcessColorModel=DeviceCMYK \
-sColorConversionStrategy=CMYK \
-sColorConversionStrategyForImages=CMYK \
-dRenderIntent=3 -dDeviceGrayToK=true \
-dOverrideICC -dPDFACompatibilityPolicy=1 \
-o cmyk.pdf rgb.pdf
其中一些开关可能是不必要的。大多数情况下,我对它们的功能一无所知,但我从各种来源复制了它们,试图找到一些解决方案,以根据需要始终生成具有 sRGB 输出而不是 CMYK 的文件。
输出中的sRGB颜色配置文件由ImageMagick确认,如下:
$ identify -verbose cmyk.pdf
Image: cmyk.pdf
Format: PDF (Portable Document Format)
Mime type: application/pdf
Class: DirectClass
Geometry: 72x72+0+0
Resolution: 72x72
Print size: 1x1
Units: Undefined
Colorspace: sRGB
Type: PaletteAlpha
Base type: Undefined
Endianess: Undefined
Depth: 16/8-bit
<full content truncated>
请注意,ghostcript 是 9.50 版,并且在 Linux Mint 20.0 下运行。
应用程序的更好用法是什么,以生成 CMYK 输出?
参考文献
- Script (or some other means) to convert RGB to CMYK in PDF?
- How to use ghostscript to convert PDF to PDF/A or PDF/X?
- Embed ICC color profile in PDF
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。