我尝试使用以下参数:
'-dPDFA=2 ' +
'-dBATCH ' +
'-DNOSAFER ' +
'-dNOPAUSE ' +
'-sColorConversionStrategy=UseDeviceIndependentColor ' +
'-sDEVICE=pdfwrite ' +
'-dPDFACompatibilityPolicy=1 ' +
'-o ./temp.pdf' +
'./PDFA_def.ps' +
'./out/temp.pdf'
Run Code Online (Sandbox Code Playgroud)
我的 PDFA_def.ps 如下所示:
%!
% This is a sample prefix file for creating a PDF/A document.
% Users should modify entries marked with "Customize".
% This assumes an ICC profile resides in the file (srgb.icc),
% in the current directory unless the user modifies the corresponding line below.
% Define entries in …Run Code Online (Sandbox Code Playgroud)