You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

GhostScript升级至10.04后PDF/A创建功能失效求助

Ghostscript 10.04升级后PDF/A生成失效问题

背景

我近期将Ghostscript从9.54版本升级至10.04版本。此前使用以下参数可生成有效的PDF/A文档,且无需指定PDF/A定义文件,也不用在定义文件中硬编码ICC配置文件路径:

-dSAFER -dPDFA=1 -dBATCH -dNOPAUSE -dCompressPages=false ^
-r300 -sPAPERSIZE=a4 -dColorConversionStrategy=/RGB -dUseCIEColor ^
-sOutputICCProfile=srgb.icc -sDEVICE=pdfwrite ^
-dPDFACompatibilityPolicy=1

升级后的问题

升级到10.04版本后,我不得不修改部分参数,但PDF/A创建功能失效。目前我能通过指定PDF/A定义文件实现功能,但希望找到无需定义文件的解决方案。

当前10.04使用的参数如下:

--permit-file-read= + C:/ ^
-sDEVICE=pdfwrite ^
-dPDFA=1 -dBATCH -dSAFER ^
-dNOPAUSE -sColorConversionStrategy=RGB ^
-dEmbedAllFonts=true ^
-dPrinted=true ^
-sProcessColorModel=DeviceRGB ^
-dPDFACompatibilityPolicy=1 ^
-dDetectDuplicateImages ^
-sOutputICCProfile=srgb.icc ^
-r300

注意:我必须将ColorConversionStrategy参数从/RGB改为RGB才能运行

我怀疑Ghostscript 10.04中ColorConversionStrategy的变化是导致无法生成有效PDF/A的原因。

当前完整的Ghostscript 10.04调用命令如下(无法用9.54版本可处理的文件生成有效PDF/A):

C:/.../gswin64c.exe --permit-file-read=C:/ ^
-sDEVICE=pdfwrite -dPDFA=1 -dBATCH -dSAFER ^
-dNOPAUSE -sColorConversionStrategy=RGB ^
-dEmbedAllFonts=true -dPrinted=true -sProcessColorModel=DeviceRGB ^
-dPDFACompatibilityPolicy=1 -dDetectDuplicateImages ^
-r300 ^
-sOutputICCProfile=C:/_Anwendungen/gs/gs10.04.0/iccprofiles/srgb.icc ^
-sOutputFile=C:\...\pdfTest4906731490839024183.pdf ^
 C:\...\tempFile0_16335057974890705872

遗憾的是,关于ColorConversionStrategy参数的参考文档极少,仅找到一篇疑似Ghostscript 9.54版本的过时内容,没有更多可用资料。

内容的提问来源于stack exchange,提问作者rzdrrw

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.13 22:46:14