将 PDF 转换为 CMYK(带有识别 CMYK 的标识)



我很难让ImageMagick的identify识别PDF为CMYK。

本质上,假设我正在使用pdflatex构建这个文件,test.tex

documentclass[a4paper,12pt]{article}
%% https://tex.stackexchange.com/questions/13071
pdfcompresslevel=0
%% http://compgroups.net/comp.text.tex/Making-a-cmyk-PDF
%% ln -s /usr/share/color/icc/sRGB.icm .
% immediatepdfobj stream attr{/N 4} file{sRGB.icm}
% pdfcatalog{%
% /OutputIntents [ <<
% /Type /OutputIntent
% /S/GTS_PDFA1
% /DestOutputProfile thepdflastobjspace 0 R
% /OutputConditionIdentifier (sRGB IEC61966-2.1)
% /Info(sRGB IEC61966-2.1)
% >> ]
% }
%% http://latex-my.blogspot.com/2010/02/cmyk-output-for-commercial-printing.html
%% https://tex.stackexchange.com/questions/9961
usepackage[cmyk]{xcolor}
begin{document}
Some text here...
end{document}

如果我随后尝试识别生成的test.pdf文件,无论我尝试了什么选项(至少根据源中的链接(,我都会将其作为 RGB - 然而,其中的颜色将被保存为 CMYK; 对于上面的来源:

$ grep -ia 'cmyk|rgb| k' test.pdf 
0 0 0 1 k 0 0 0 1 K
0 0 0 1 k 0 0 0 1 K
0 0 0 1 k 0 0 0 1 K
0 0 0 1 k 0 0 0 1 K
FontDirectory/CMR12 known{/CMR12 findfont dup/UniqueID known{dup
/PTEX.Fullbanner (This is pdfTeX, Version 3.1415926-1.40.11-2.2 (TeX Live 2010) kpathsea version 6.0.0)
$ identify -verbose 'test.pdf[0]'
...
  Type: Palette
  Endianess: Undefined
  Colorspace: RGB
  Depth: 16/8-bit
  Channel depth:
    red: 8-bit
    green: 8-bit
    blue: 8-bit
  Channel statistics:
    Red:
...
    Green:
...
    Blue:
...
  Histogram:
         5: (12593,11565,11822) #31312D2D2E2E rgb(49,45,46)
         4: (16448,15420,15677) #40403C3C3D3D rgb(64,60,61)
         9: (20303,19275,19532) #4F4F4B4B4C4C rgb(79,75,76)
        25: (23901,23130,23387) #5D5D5A5A5B5B rgb(93,90,91)
...

如果我也取消评论该immediatepdfobj stream ...,几乎也会发生同样的情况 .part;然而,如果文档中只有一种颜色(黑色(,我看不出identify在哪里想出 RGB 值的直方图(尽管可以说,它们都接近灰色(?!

 

所以没关系,那么我最好尝试使用ghostscripttest.pdf转换为新的 pdf,该 pdf 会被identify识别为 CMYK - 但即使在那里也没有运气:

$ gs -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite  -sOutputFile=test-gs.pdf -dUseCIEColor -sProcessColorModel=DeviceRGB -dProcessColorModel=/DeviceCMYK -sColorConversionStrategy=/CMYK test.pdf 
GPL Ghostscript 9.01 (2011-02-07)
Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1

$ identify -verbose 'test-gs.pdf[0]'
...
  Type: Grayscale
  Base type: Grayscale
  Endianess: Undefined
  Colorspace: RGB
  Depth: 16/8-bit
...

因此,identify唯一被视为更改的是Type: Grayscale(从以前的Type: Palette(;但除此之外,它仍然会看到RGB色彩空间!

除此之外,请注意identify能够正确报告 CMYK pdf - 请参阅 CMYK 海报示例:将 pdf 页面大小与(位图(图像大小相匹配? #17843 - TeX - LaTeX - 堆栈交换 有关使用 convertgs 生成此类 PDF 文件的命令行示例。事实上,我们可以执行:

convert test.pdf -depth 8 -colorspace cmyk -alpha Off test-c.pdf

这将导致 PDF 将被identify为 CMYK - 但是,PDF 也将被栅格化(默认为 72 dpi(。

编辑:我刚刚发现,如果我在OpenOffice中创建.odp演示文稿,并将其导出为PDF; 默认情况下,PDF将是RGB,但是,以下命令(来自ghostscript Example|生产猴子(:

# Color PDF to CMYK:
gs -dSAFER -dBATCH -dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite 
-sColorConversionStrategy=CMYK -dProcessColorModel=/DeviceCMYK 
-sOutputFile=output.pdf input.pdf

。实际上将生成一个 CMYK PDF,由 identify 报告(尽管在所有四个频道上,黑色会很丰富,而不是普通(;但是,仅当幻灯片添加了图像时,此命令有效(显然,它是触发颜色转换的图像?!有趣的是,我无法从pdflatex PDF中获得相同的效果。

 

所以我想我的问题可以通过两种方式提出:

  • Linux 中是否有任何命令行转换方法,可以将 RGB pdf 转换为 CMYK pdf,同时保留矢量,这在identify中被识别为这样(因此将构建正确的 CMYK 颜色直方图(
  • 是否有任何其他类似于 identify 的命令行 Linux 工具,即使在原始test.pdf中也能正确识别 CMYK 颜色的使用pdflatex(并可能基于任意选择的 PDF 页面构建颜色直方图,就像identify应该的那样(?

提前感谢您的任何答案,
干杯!

 

一些参考资料:

  • 土坯 - 脚本(或其他一些方法(将RGB转换为PDF中的CMYK? - 堆栈溢出
  • color - PDF 颜色模型和 LaTeX - TeX - LaTeX - 堆栈交换
  • color - 用于 xcolor 软件包的选项 cmyk 不生成 CMYK PDF - TeX - LaTeX - 堆栈交换
  • 制作 cmyk PDF - comp.text.tex |计算机组
  • 用代笔进行色彩管理 ? - 犀牛:

    例如,是否指定为"0 0 0 1 塞特米克颜色"?或者更确切地说是"0 0 0 setrgbcolor"?在 后一种情况,如果 DeviceRGB 是 重新映射到基于 CIE 的颜色空间,以获得 RGB 图像颜色 管理。

sdaau,您用于尝试将PDF转换为CMYK的命令不正确。试试这个:

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

更新

如果颜色转换没有按预期工作,并且如果您看到类似"无法将颜色空间转换为灰色,将策略恢复为 LeaveColorUnchanged">之类的消息,那么......

  1. 您的 Ghostscript 可能是 9.x 版本系列的较新版本,并且
  2. 您的源 PDF 可能使用嵌入的 ICC 颜色配置文件

在这种情况下,将-dOverrideICC添加到命令行,并查看它是否根据需要更改结果。


更新 2

要避免图像中出现 JPEG 伪影(以前没有(,请添加:

-dEncodeColorImages=false

进入命令行。

(几乎所有GS PDF->PDF处理都是如此,而不仅仅是这种情况。因为 GS 默认创建一个全新的文件,其中包含新构建的对象和新的文件结构,当被要求生成 PDF 输出时——它不会简单地重用以前的对象,因为像 pdftk 这样的更"愚蠢"的 PDF 处理器 { pdftk 还有其他优点,不要误解我的说法!GS默认应用JPEG压缩 - 查看当前的Ps2pdf文档并搜索"ColorImageFilter">以了解更多详细信息...

我有一个不相关的问题,但我目前也在努力使用 CMYK PDF。

我在这里写了这个小脚本(它被称为pdf2pdfx(:

#!/bin/bash
gs 
-dPDFX 
-dBATCH 
-dNOPAUSE 
-dNOOUTERSAVE 
-sDEVICE=pdfwrite 
-sColorConversionStrategy=CMYK 
-dProcessColorModel=/DeviceCMYK 
-dPDFSETTINGS=/prepress 
-sOutputFile="${1%%.pdf}_X-3.pdf" 
PDFX_def.ps 
"$1"

我的 PDFX_def.ps 包含以下内容(我删除了 ICC 配置文件并定义了FOGRA39,这应该没问题(:

%!
% $Id$
% This is a sample prefix file for creating a PDF/X-3 document.
% Feel free to modify entries marked with "Customize".
% This assumes an ICC profile to reside in the file (ISO Coated sb.icc),
% unless the user modifies the corresponding line below.
systemdict /ProcessColorModel known {
  systemdict /ProcessColorModel get dup /DeviceGray ne exch /DeviceCMYK ne and
} {
  true
} ifelse
{ (ERROR: ProcessColorModel must be /DeviceGray or DeviceCMYK.)=
  /ProcessColorModel cvx /rangecheck signalerror
} if
% Define entries to the document Info dictionary :
% /ICCProfile (/usr/share/color/icc/ISOcoated_v2_300_eci.icc) def  % Customize or remove.
[ /GTS_PDFXVersion (PDF/X-3:2002) % Must be so (the standard requires).
  /Title (Title)                  % Customize.
  /Trapped /False                 % Must be so (Ghostscript doesn't provide other).
  /DOCINFO pdfmark
% Define an ICC profile :
currentdict /ICCProfile known {
  [/_objdef {icc_PDFX} /type /stream /OBJ pdfmark
  [{icc_PDFX} <</N systemdict /ProcessColorModel get /DeviceGray eq {1} {4} ifelse >> /PUT pdfmark
  [{icc_PDFX} ICCProfile (r) file /PUT pdfmark
} if
% Define the output intent dictionary :
[/_objdef {OutputIntent_PDFX} /type /dict /OBJ pdfmark
[{OutputIntent_PDFX} <<
  /Type /OutputIntent              % Must be so (the standard requires).
  /S /GTS_PDFX                     % Must be so (the standard requires).
  /OutputCondition (Commercial and specialty printing) % Customize
  /Info (none)                     % Customize
  /OutputConditionIdentifier (FOGRA39)      % Customize
  /RegistryName (http://www.color.org)   % Must be so (the standard requires).
  currentdict /ICCProfile known {
    /DestOutputProfile {icc_PDFX}  % Must be so (see above).
  } if
>> /PUT pdfmark
[{Catalog} <</OutputIntents [ {OutputIntent_PDFX} ]>> /PUT pdfmark

识别然后正确报告 CMYK 色彩空间。以前:

tbart@blackknight ~/orpheus/werbung/action $ identify -verbose action_schulungsvideo_v3_print.pdf
Image: action_schulungsvideo_v3_print.pdf
  Format: PDF (Portable Document Format)
  Class: DirectClass
  Geometry: 612x859+0+0
  Resolution: 72x72
  Print size: 8.5x11.9306
  Units: Undefined
  Type: TrueColor
  Endianess: Undefined
  Colorspace: RGB
  Depth: 16/8-bit
  Channel depth:
    red: 8-bit
    green: 8-bit
    blue: 8-bit
  Channel statistics:
    Red:
      min: 0 (0)
      max: 65535 (1)
      mean: 53873.6 (0.822058)
      standard deviation: 19276.7 (0.294144)
      kurtosis: 1.854
      skewness: -1.82565
    Green:
      min: 0 (0)
      max: 65535 (1)
      mean: 55385.6 (0.84513)
      standard deviation: 19274.6 (0.294112)
      kurtosis: 2.09868
      skewness: -1.91651
    Blue:
      min: 0 (0)
      max: 65535 (1)
      mean: 51020 (0.778516)
      standard deviation: 20077.7 (0.306367)
      kurtosis: 0.860627
      skewness: -1.52344
  Image statistics:
    Overall:
      min: 0 (0)
      max: 65535 (1)
      mean: 53426.4 (0.815235)
      standard deviation: 19546.7 (0.298263)
      kurtosis: 1.59453
      skewness: -1.75701
  Rendering intent: Undefined
  Interlace: None
  Background color: white
  Border color: rgb(223,223,223)
  Matte color: grey74
  Transparent color: black
  Compose: Over
  Page geometry: 612x859+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: Undefined
  Orientation: Undefined
  Properties:
    date:create: 2011-09-14T15:38:57+02:00
    date:modify: 2011-09-14T15:38:57+02:00
    pdf:HiResBoundingBox: 612.283x858.898+0+0
    pdf:Version: PDF-1.5 
    signature: 210bfc9cf90e3b9505385f8b2267da1665b5c2de28bb5223311afba01718bbeb
  Artifacts:
    verbose: true
  Tainted: False
  Filesize: 1.577MBB
  Number pixels: 526KB
  Pixels per second: 52.57MB
  User time: 0.020u
  Elapsed time: 0:01.009
  Version: ImageMagick 6.6.5-6 2011-04-08 Q16 http://www.imagemagick.org

后:

tbart@blackknight ~/orpheus/werbung/action $ pdf2pdfx action_schulungsvideo_v3_print.pdf
GPL Ghostscript 9.04 (2011-08-05)
Copyright (C) 2011 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1

tbart@blackknight ~/orpheus/werbung/action $ identify -verbose action_schulungsvideo_v3_print_X-3.pdf 
Image: action_schulungsvideo_v3_print_X-3.pdf
  Format: PDF (Portable Document Format)
  Class: DirectClass
  Geometry: 612x859+0+0
  Resolution: 72x72
  Print size: 8.5x11.9306
  Units: Undefined
  Type: ColorSeparation
  Base type: ColorSeparation
  Endianess: Undefined
  Colorspace: CMYK
  Depth: 16/8-bit
  Channel depth:
    cyan: 8-bit
    magenta: 8-bit
    yellow: 8-bit
    black: 8-bit
  Channel statistics:
    Cyan:
      min: 0 (0)
      max: 65535 (1)
      mean: 8331.78 (0.127135)
      standard deviation: 14902.2 (0.227392)
      kurtosis: 1.62171
      skewness: 1.7799
    Magenta:
      min: 0 (0)
      max: 62194 (0.94902)
      mean: 6739.34 (0.102836)
      standard deviation: 14517.5 (0.221523)
      kurtosis: 2.08183
      skewness: 1.93276
    Yellow:
      min: 0 (0)
      max: 65535 (1)
      mean: 13310.1 (0.203098)
      standard deviation: 17022.5 (0.259746)
      kurtosis: 0.991135
      skewness: 1.45216
    Black:
      min: 0 (0)
      max: 56540 (0.862745)
      mean: 7117.47 (0.108606)
      standard deviation: 16803.7 (0.256408)
      kurtosis: 3.02752
      skewness: 2.16554
  Image statistics:
    Overall:
      min: 0 (0)
      max: 65535 (1)
      mean: 8874.66 (0.135419)
      standard deviation: 15850.6 (0.241864)
      kurtosis: 2.17614
      skewness: 1.88139
  Total ink density: 292%
  Rendering intent: Undefined
  Interlace: None
  Background color: white
  Border color: cmyk(223,223,223,0)
  Matte color: grey74
  Transparent color: black
  Compose: Over
  Page geometry: 612x859+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: Undefined
  Orientation: Undefined
  Properties:
    date:create: 2011-09-14T15:39:30+02:00
    date:modify: 2011-09-14T15:39:30+02:00
    pdf:HiResBoundingBox: 612.28x858.9+0+0
    pdf:Version: PDF-1.3 
    signature: 0416db7487ea147b974ece5748bc4284e82bfc3fb7cd07a4de050421ba112076
  Artifacts:
    verbose: true
  Tainted: False
  Filesize: 2.103MBB
  Number pixels: 526KB
  Pixels per second: 5.25708PB
  User time: 0.000u
  Elapsed time: 0:01.000
  Version: ImageMagick 6.6.5-6 2011-04-08 Q16 http://www.imagemagick.org

这是在 64 位 Gentoo 上,gs 9.04也许这有帮助?

源PDF源于inkscape pdf导出,颜色仅限于ECI ISO涂层v2中涵盖的颜色。我将其用作缺少 CMYK 导出的 inkscape 和缺乏印前就绪的 PDF/X 输出的解决方法......

好吧,这里有一些东西,至少...

最初,我需要这样做来确保我的 PDF 文件是 CMYK 格式,并将文本设置为"纯黑色"C:0、M:0、Y:0、K:100 - 因为我以前遇到过打印机问题,他们会抱怨我的 Latex PDF 包含"富黑色"文本(因此成本更高(。我通常会选择identify因为它似乎是唯一可以解析 PDF 和颜色的工具(而且它也相对容易记住(。

好吧,我通读了技术提示:使用 Ghostscript 转换和合并文件 |Linux 期刊;建议使用gstiffsep装置进行分离。这对我来说扮演着与identify相同的角色;我只能做:

$ gs -sDEVICE=tiffsep -dNOPAUSE -dBATCH -dSAFER -r150x150 -sOutputFile=p%08d.tif test.pdf 
$ ls p*
p00000001.Black.tif  p00000001.Magenta.tif  p00000001.Yellow.tif  p00000001.Cyan.tif   p00000001.tif
$ eog p00000001.tif

。然后我可以使用左/右箭头"迭代"分离图像 - 它是"纯黑色"还是"浓黑色"一目了然。

因此,这表明,无论identify显示什么,来自pdflatextest.pdf实际上具有"纯黑色"作为文本颜色,因为它应该如此(其他分隔是空白的( - 但是,执行以下操作:

# do a conversion of original PDF
$ gs -dPDFA -dBATCH -dNOPAUSE -dNOOUTERSAVE -dUseCIEColor -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sOutputFile=out_pdfa.pdf test.pdf
# do a separation on the converted pdf
$ gs -sDEVICE=tiffsep -dNOPAUSE -dBATCH -dSAFER -r150x150 
  -dFirstPage=1 -dLastPage=1 -sOutputFile=p%08d.tif out_pdfa.pdf
# view
$ eog p00000001.tif

。将揭示特定out_pdfa.pdf实际上具有"丰富的黑色" - 即文本的墨水会覆盖所有四个分隔!(identify也显示这个为 RGB(。

所以,我希望这种gs/tiffsep技术比identify :)更可靠

 

注意:我使用的是 Ubuntu Natty,它提供了 GhostScript 9.01 - 但是,tiffsep有一个令人讨厌的错误:错误691857 – tiffsep 在版本 9 中崩溃(缺少 lab.icc(。这已在 9.02 中修复 - 并且 9.02 已在 oneiric 中作为 ghostscript 发布。要在 Natty 下使用 9.02,我遵循了如何使用 apt-get 更新单个包?- 优麒麟论坛:

sudo nano /etc/apt/sources.list # add deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted
sudo apt-get update
sudo apt-get install ghostscript # this upgrades only gs and dependencies 
sudo nano /etc/apt/sources.list  # remove/comment oneiric repo
sudo apt-get update && sudo apt-get upgrade # should be back to normal here

请注意,对于有缺陷的 9.01 版本,即使此命令也会失败:

$ GS_LIB=/usr/share/ghostscript/9.01/iccprofiles/ gs -sICCProfilesDir=/usr/share/ghostscript/9.01/iccprofiles/ -sDEVICE=tiffsep -dNOPAUSE -dBATCH -dSAFER -sOutputFile=p%08d.tif out_pdfa.pdf
...
sfopen: gs_parse_file_name failed.
sfopen: gs_parse_file_name failed.
... gsicc_open_search(): Could not find lab.icc ...

..而在 9.02 中,无需明确指定sICCProfilesDir

我也因此而发疯。 我完全尝试了@tbart的例子,但它仅适用于某些输入pdf(似乎已经包含图像,rgb与否?(,而不适用于其他pdf。 具体来说,让我们以这个超级简单的ps文件为例:

%!PS
/Times-Roman findfont 30 scalefont setfont
72 680 moveto
0.81 0.72 0 0 setcmykcolor
(This is text!) show
showpage

如果我调用此 test1.ps,然后运行以下命令(在 Windows 上,gs 9.14(:

gswin64c -dEmbedAllFonts=true -dPDFX -dBATCH -dNOPAUSE -dNOOUTERSAVE -sDEVICE=pdfwrite -dProcessColorModel=/DeviceCMYK -sOutputICCProfile=CoatedGRACoL2006.icc   -sColorConversionStrategy=CMYK -sColorConversionStrategyForImages=CMYK -sOutputFile=test1.pdf PDFX_def.ps test1.ps

如果你使用的是linux/cygwin,请将gswin64c替换为gs。

我正在使用的 CMYK ICC 位于 PDFX_def.ps 和上面的命令中。 你可以从这里得到它,但它只是一个随机的ICC,moo想要他们的卡,它似乎并不特别:http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=4075&fileID=3790

test1.pdf 输出在 Illustrator 中加载为 CMYK pdf,但 标识 -verbose 表示它是 sRGB。 如果我做@sdaau的tiffsep事情,它会写出分离并且它们具有正确的值。

所以,我不知道。

任何人都可以将此 ps 文件转换为识别识别的 CMYK pdf 吗?

克里斯


编辑:哇。 我可能已经想通并修复了它。 看起来 id 只是在 PDF 文件中寻找/ColorSpace/DeviceCMYK,所以如果我破解 PDFX_def.ps 来输出它,id 会称之为 CMYK。 因此,查看有效的pdf,我发现如果他们有这一行识别工作,如果没有,他们被错误地标记为sRGB。

在 PDFX_def.ps 的末尾,添加/ColorSpace/DeviceCMYK 行:

[/_objdef {OutputIntent_PDFX} /type /dict /OBJ pdfmark
[{OutputIntent_PDFX} <<
  /ColorSpace /DeviceCMYK          % convince ImageMagick's identify that it's CMYK
  /Type /OutputIntent              % Must be so (the standard requires).
  /S /GTS_PDFX                     % Must be so (the standard requires).
  /OutputCondition (Commercial and specialty printing) % Customize
  /Info (none)                     % Customize
  /OutputConditionIdentifier (CGATS TR 003)      % Customize
  /RegistryName (http://www.color.org)   % Must be so (the standard requires).
  currentdict /ICCProfile known {
    /DestOutputProfile {icc_PDFX}  % Must be so (see above).
  } if
>> /PUT pdfmark
[{Catalog} <</OutputIntents [ {OutputIntent_PDFX} ]>> /PUT pdfmark

繁荣。 我希望这不会对兼容性或任何事情产生任何奇怪的影响。

我发现ghostscript的命令行非常混乱,谷歌搜索给出了很多类似的,有时相互矛盾的建议,其中大部分对我不起作用。

就我而言,我从纯黑色或白色 SVG(所有向量 + 文本(开始。使用 CairoSVG 将其转换为 PDF 会生成 RGB PDF。

我发现执行转换为 CMYK(或仅"单板"黑色(的最低ghostscript(版本 9.50(命令是:

gs -q -sDEVICE=pdfwrite -sColorConversionStrategy=CMYK -o <output.pdf> <intput.pdf>

笔记:

  • -sColorConversionStrategy=Gray将制作一个"单板"、仅限黑色的文件(这实际上是我在我的情况下想要的(。
  • -o设置输出文件与-sOutputFile开关不同。
  • <input_file.pdf>不能与<output_file.pdf>文件相同;如果这样做,您将获得一个空白的PDF。
  • 就我而言,我不想保留CairoSVG生成的中间RGB PDF,所以我这样做了:cairosvg <input_file.svg> -f pdf | gs -q -sDEVICE=pdfwrite -sColorConversionStrategy=Gray -o <output_file.pdf> -;ghostcript命令末尾的-告诉它从标准输出中获取输入。

为了验证我最终得到了我想要的PDF文件,我使用了Adobe Acrobat的印前检查,如此处的建议,转换为不支持RGB颜色的PDF/X格式。

当我在队列中还有另一个打印作业时,再次使用 PDF/X-3 重新访问 CMYK 转换让我发现了以下内容:

如果您只需要 CMYK,请避免使用 X-3。它不支持透明度(https://en.wikipedia.org/wiki/PDF/X(,您将获得的青色图像既不令人满意,也不符合任何标准。如果您有 alpha、不透明度、渐变,如果您的印刷店不是绝对需要,则不会转换为 PDF/X-3。

如果你确实需要pdf/X,你需要光栅化并使用X-3。在"众所周知的工具链"(imagemagick,inkscape,gimp等(中,没有我所知道的Linux上的X-4/自由软件产品。

然而,我仍在与定义的浓黑色作斗争,例如 60%C、60%M、40%Y、100%K - 这是印刷厂相当典型的标准。每当我在 inkscape 中设置它时,它都会在导出后立即消失(到 RGB;开罗限制(

尽管如此,这似乎还是让我接近他们期望的:

#!/bin/bash
# possibly ps2ps2 for keeping fonts?
pdf2ps -sOutputFile=- "$1" | gs 
-dPDFX 
-dBATCH 
-dNOPAUSE 
-dNOOUTERSAVE 
-dPDFSETTINGS=/prepress 
-dCompatibilityLevel=1.4 
-sDEVICE=pdfwrite 
-sColorConversionStrategy=CMYK 
-sProcessColorModel=DeviceCMYK 
-dHaveTransparency=false 
-sOutputFile="${1%%.pdf}_X-3.pdf" 
PDFX_def.ps 
-

任何关于真正的CMYK创建到CMYK-PDF输出工作流程的见解仍然非常受欢迎。Scribus不是真正的解决方案,因为它在正确导入inkscape SVG时有很多问题。除此之外,scribus在创建CMYK-PDF方面做得不错。

最新更新