尝试使用ghostscript gswin8.56 32bit从pdf创建pdf / a

时间:2017-01-03 08:33:27

标签: pdf ghostscript pdfa

我正在尝试使用Windows Server 2012 r2上的以下命令将pdf转换为pdf / a。

gswin32c.exe -dPDFA=1 -dBATCH -dNOPAUSE
-sColorConversionStrategy=/RGB -sOutputICCProfile=AdobeRGB1998.icc \
-sDEVICE=pdfwrite -sOutputFile=output_a.pdf -dPDFACompatibilityPolicy=1 \
PDFA_def.ps inputput.pdf

Prior to this I changed the icc profile in PDFA_def.ps to AdobeRGB1998.icc.
When I run the command I get the following Post Script error message.

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
- 2 %stopped_push --nostringval-- --nostringval--   --nostringval--   false 1 %stopped_push
Dictionary stack:
   --dict:1140/1684(ro)(G)--   --dict:0/20(G)--   --dict:70/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 8.56: Unrecoverable error, exit code 1

I have been beating my head on this for quiet long now. Any help to resolve this error would be highly appreciated.

1 个答案:

答案 0 :(得分:0)

你只是不能用旧的Ghostscript版本(8.56现在9岁)。目前发布的版本是9.20,升级。

您还应确保已在修改后的pdfa_def.ps中指定了ICC配置文件的完整路径。