【发布时间】:2015-08-06 17:30:35
【问题描述】:
我已经为此苦苦挣扎了几天,所以我想我会在这里寻求帮助...
基本上,我正在尝试使用 ps2pdf(9.10 版)创建正确的 PDF/X-1 和 PDF/X-3 文档。是的,我知道 ps2pdf 据说只支持 PDF/X-3(见this thread 和this thread 和this thread)。但是,由于 PDF/X-1 基本上是 PDF/X-3 的子集,我想这样的转换应该是可能的。另外,使用命令...
gs -sDEVICE=pdfwrite -dPDFX -dBATCH -dNOPAUSE -dNOOUTERSAVE -sProcessColorModel=DeviceCMYK -sOutputFile=out.pdf PDFX_def.ps in.pdf
我注意到我正在创建的 PDF/X-3 文件的颜色被转换为 CMYK,而不是保留为 RGB(PDF/X-3 应该是这种情况)。因此,从技术上讲,这些文件现在是 PDF/X-1:我可以通过将“/GTS_PDFXVersion (PDF/X-1a:2003)”添加到 PDFX_def.ps 并通过 Adobe 的 Preflight 运行文件来确认。
这让我想到了问题的第一部分:如何防止将原始 PDF 文档中定义的 RGB 颜色转换为 CMYK?开关“-dColorConversionStrategy=/LeaveColorUnchanged”似乎没有任何效果。 (实际上,我读到here 说这种转换甚至是不可能的。那么,为什么会发生这种情况?或者这是过时的信息?)
其次,为什么documentation 会说“RGB 不允许”与“-dPDFX”结合使用?这不就是 PDF/X-3 的意义所在吗?
第三,是否也可以创建通过 Adobe 预检的 PDF/X-4 文档?
顺便说一下,这是我的 PDFX_def.ps 文件:
%!
% $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 (Blurb_ICC_Profile.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 (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 (ISOcoated_v2_300_eci.icc) % Customize
/Info (Info) % Customize
/OutputConditionIdentifier (Custom) % 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
提前致谢!
【问题讨论】:
标签: pdf ghostscript