2011-06-05 117 views
23

如果要将ImageMagick的identify识别为CMYK,那么我有很多麻烦。将PDF转换为CMYK(具有识别CMYK的识别码)

本质,让我们说我建立这个文件,test.tex,与pdflatex

\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 . 
% \immediate\pdfobj stream attr{/N 4} file{sRGB.icm} 
% \pdfcatalog{% 
% /OutputIntents [ << 
% /Type /OutputIntent 
% /S/GTS_PDFA1 
% /DestOutputProfile \the\pdflastobj\space 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) 
... 

同样几乎发生,如果我也取消注释\immediate\pdfobj stream ... 部分;但如果文档中只有一种颜色(黑色),我看不到identify在哪里出现RGB值的直方图(尽管可以说所有这些都接近灰色)?

 

所以请不要介意这一点,那么我虽然我还是尝试使用ghostscripttest.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: Palette);但除此之外它仍然会看到一个RGB色彩空间!

与此相伴,注意identify能够正确地报告一个CMYK PDF - 见CMYK poster example: fitting pdf page size to (bitmap) image size? #17843 - TeX - LaTeX - Stack Exchange用于使用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 Examples | Production Monkeys):

# 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工具,即使在原始0中也可以正确识别CMYK颜色的使用from pdflatex并可能建立一个颜色直方图,基于任意选择的PDF页面,如identify应该是)?

预先感谢任何答案,
干杯!

 

一些参考:

回答

21

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

由于@Marein评论说,如果你想避免JPEG文物出现在图像(其中前无有),你应该添加

-dEncodeColorImages=false 

进入命令线。

(这适用于几乎所有的GS PDF - > PDF处理,而不是仅仅针对这种情况,因为GS默认创建与新建成的对象和新的文件结构的完全新的文件时,要求出示PDF输出 - 它不会简单地重新使用以前的对象,更多的“哑巴”像PDF处理器pdftk{pdftk还有其他的好处不过,别误会我的发言!} GS默认应用JPEG压缩。 - - 看看目前Ps2pdf documentation和搜索“ColorImageFilter”了解更多详情...)

+0

用来捕获非常感谢,@pipitas - 还没有考出你的命令的时间,但它看起来很有道理,所以我在这里设置的接受现在...干杯! – sdaau 2012-02-03 08:53:02

+0

我发现使用给定的命令会将JPEG制品添加到我的图像中。添加'-dEncodeColorImages = false'可以防止这种情况发生,同时仍然可以转换颜色。有关非颜色变体,请参见[源代码](http://superuser.com/questions/360216/use-ghostscript-but-tell-it-to-not-reprocess-images)。 – Marein 2015-05-28 12:25:35

+0

@Marein:感谢您的评论 - 我已将其内容包含在我的答案更新中。 – 2015-05-28 12:53:57

2

好吧,这里是什么东西,至少...

本来,我需要这样的一种方式,以确保我的PDF文件是CMYK,并有文字为“纯黑色“C:0,M:0,Y:0,K:100 - 因为之前我在打印机上遇到过问题,他们会抱怨我的Latex PDF包含文本的”丰富黑色“(因此成本更高)。我通常选择identify,因为它似乎是唯一可以解析PDF和颜色的工具(并且它也相对容易记住)。

好吧,我通读了Tech Tip: Using Ghostscript to Convert and Combine Files | Linux Journal;建议使用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纳蒂,其中船舶GhostScript的9.01 - 但是,一个有讨厌的bug与tiffsepBug 691857 – tiffsep crashes in Version 9 (missing lab.icc)。这已被固定为9.02 - 和9.02已发布为ghostscript in oneiric。要使用9.02纳蒂下,我也跟着how to update a single package using apt-get? - Ubuntu Forums

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

6

我有一个不相关的问题,但我目前也在努力处理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,这应该是OK):

%! 
% $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颜色空间。 前:

[email protected] ~/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 

后:

[email protected] ~/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 


[email protected] ~/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 

这是与GS 9.04 也许这可以帮助64位的Gentoo?

Source PDF源自inkscape pdf导出,颜色仅限于ECI ISO coated v2中涵盖的颜色。 我用这个作为Inkscape中的缺乏CMYK出口的解决方法和缺乏印前准备PDF/X输出...

+0

非常感谢这个详细的回答与范例,@tbart - 希望能够在早点看的问题再次出现:)干杯! – sdaau 2011-09-19 19:23:33

+2

当心,Ghostscript的9.05真是狠毒并尝试打开'在/ usr /共享/的ghostscript/9.05/lib中/ PDFX_def.ps'在Ubuntu 12.04 – 2013-09-24 20:23:25

+0

将它们转换为CMYK时,这种方法保存的载体,还是需要进行光栅化第一? – johnp 2016-09-09 08:37:17

1

我也被这个驱动疯狂。我试过@ tbart的例子,但它只适用于某些输入的pdf(看起来已经包含图像,rgb或不是),而不是其他的。具体来说,让我们这个超级简单的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 

与GS如果更换gswin64c你在linux/cygwin上。

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

从此加载的test1.pdf作为CMYK pdf在Illustrator中,但标识 - 详细地说它是sRGB。如果我做@ sdaau的tiffsep事情,它会写出分隔符,并且它们有正确的值。

所以,我不知道。

任何人都可以得到这个PS文件转换为标识识别CMYK PDF?

克里斯


编辑:哇。我可能已经弄明白了并修正了它。它看起来像识别只是在PDF文件中寻找/ ColorSpace/DeviceCMYK,所以如果我篡改PDFX_def.ps输出它,识别将称之为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 

动臂。我希望这不会做任何奇怪的兼容性或任何事情。

+1

不幸的是,当我这样做时,我的PDF变得栅格化。有没有办法避免这种情况? – 2014-12-02 20:37:39

+0

谢谢你,@ChrisHecker - 我还没有测试过,但很高兴能写下这些......干杯! – sdaau 2015-05-09 01:40:39

+1

@PedroMDuarte:(1)'identify'是ImageMagick的一部分。 (2)ImageMagick无法自行处理PDF输入(它只能直接处理光栅图像) - 它会将Ghostscript用作所有PDF输入的*'委托'*,甚至可以识别PDF。 (3)当ImageMagick获得PDF输入时,它会首先调用Ghostscript将其转换为(一系列)整页光栅图像,然后继续对其进行处理。 (4)您无法直接控制ImageMagick用于运行Ghostscript的确切命令(它可能会将CMYK输入重新转换为RGB广告)。 – 2016-09-09 09:17:50

1

再次重温与PDF/X-3的CMYK转换为我在队列中的另一打印作业却让我发现了以下工作:

如果你只需要CMYK,避免X-3。 它不支持透明度(https://en.wikipedia.org/wiki/PDF/X)和青色有色图像,你会得到既不是令人满意的,也不它实际上将符合任何标准。如果您有alpha,不透明度,如果您的印刷厂不需要,渐变不会转换为PDF/X-3。

如果你确实需要的PDF/X,你需要光栅化和去X-3。有没有X-4上,我知道在“众所周知的工具链”的Linux /免费软件产品(ImageMagick的,Inkscape中,GIMP等)

不过,我仍然战斗定义浓郁黑,F .EX。 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-PDF输出工作流程的真正CMYK创建见解仍然非常受欢迎。 Scribus并不是真正的解决方案,因为它有很多问题正确地导入inkscape SVG。除此之外,scribus在创建CMYK-PDFs方面做得不错。