印刷厂要求我论文的 PDF 符合 PDF/X1a:2001 标准。内容文件是使用编译的XeTeX LaTeX
第二个 PDF 是封面设计Inkscape 0.48
.
我在这篇文章中找到的最接近的答案:https://stackoverflow.com/a/3483801/1288722,如果我理解正确的话,至少可以使用以下方法将 PDF 转换为 PDF/X:鬼脚本.
如上面的答案所述,转换为 PDF/X 需要有效的 ICC 配置文件。我联系了印刷厂,他们提供了一份他们喜欢的文件:ISOcoated_v2_300_eci.icc
。我添加了.icc
文件到目标 pdf 文件的同一文件夹(感谢 VadimR 的评论)。
鬼脚本
我从命令行使用了这个脚本,但它不起作用:
gswin32c -dPDFX -dBATCH -dNOPAUSE -dNOOUTERSAVE -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sOutputFile=outputfile.pdf PDFX_def.ps doctorate.pdf
我花了一些时间做了 220 页,但效果很糟糕,效果不佳。
的内容PDFX_def.ps
:
%!
% 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 (ISOcoated_v2_300_eci.icc) def % Customize or remove.
%/ICCProfile (ISO Coated sb.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 (CGATS TR001) % 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
那么我错过了什么?
Notes
您可以生成 PDF/X 文件,但不能生成 PDF/X1 我记得 PDF/X-1 要求所有颜色都以 CMYK 或灰色指定,旧版本的 pdfwrite 无法做到这一点,当前版本可以,但需要一些其他工作使其与 PDF/X-1 兼容,我不确定它是否值得付出努力。
看到这个错误报告
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)