简体   繁体   English

如何将 RGB PDF 转换为带有纯黑色的 CMYK?

[英]How can I convert an RGB PDF to CMYK with flat black?

I used instructions from here to convert an RGB PDF to CMYK using Ghostscript, and it's mostly OK except all the blacks are "rich" - they use not just K but also CMY inks.我使用此处的说明使用 Ghostscript 将 RGB PDF 转换为 CMYK,除了所有的黑色都是“丰富的”之外,它基本上没问题 - 他们不仅使用 K,而且还使用 CMY 墨水。

Is there a way to convert such that all blacks are "flat" and just use K?有没有一种方法可以转换成所有的黑人都是“平坦的”并且只使用 K?

This is the code I used:这是我使用的代码:

gs \
   -o test-cmyk.pdf \
   -sDEVICE=pdfwrite \
   -sProcessColorModel=DeviceCMYK \
   -sColorConversionStrategy=CMYK \
   -sColorConversionStrategyForImages=CMYK \
    test.pdf 

Assuming your PDF file actually does use RGB (and not an ICC profile embedded in the PDF) then, in order to get R=G=B->C==M=Y=0, K=R, you need to set up a custom ICC profile link.假设您的 PDF 文件确实使用 RGB(而不是 PDF 中嵌入的 ICC 配置文件),那么为了获得 R=G=B->C==M=Y=0, K=R,您需要设置自定义 ICC 配置文件链接。

You'll need to tell Ghostscript to use a custom RGB profile in place of default_rgb.icc and a cuustom CMYK profile in place of default_cmyk.icc.您需要告诉 Ghostscript 使用自定义 RGB 配置文件代替 default_rgb.icc,并使用自定义 CMYK 配置文件代替 default_cmyk.icc。 You'll need to ensure that the mapping RGB->XYZ->CMYK results in pure K when R=G=B.当 R=G=B 时,您需要确保映射 RGB->XYZ->CMYK 产生纯 K。

There's documentation in the Ghostscript 'doc' folder on the various colour management settings, but most of these will only be effective when rendering, not when outputting a PDF file. Ghostscript 'doc' 文件夹中有关于各种颜色管理设置的文档,但其中大部分仅在渲染时有效,而不是在输出 PDF 文件时有效。 About the only things you can usefully alter when outputting PDF is the input and output profiles.关于在输出 PDF 时您可以有效更改的唯一内容是输入和 output 配置文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM