我試過這個命令:錯誤將PDF轉換爲PDF/A
gs -dPDFA -dBATCH -dNOPAUSE -sProcessColorModel=DeviceRGB -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=/tmp/test/pdfa/pdftopdfa.pdf /tmp/test/pdftopdfa.pdf
但我得到這個錯誤:
Artifex Ghostscript 9.14: Can't find initialization file gs_init.ps.
我嘗試另一個命令:
gs -dPDFA -dBATCH -dNOPAUSE -dUseCIEColor -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=/tmp/test/pdfa/23238input.xml_2.pdf 23238input.xml_2.pdf
但我得到這個錯誤:
Artifex Ghostscript 9.14 (2014-03-26) Copyright (C) 2014 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Can't find (or open) initialization file (gs_std_e.ps) Unrecoverable error: undefined in .uninstallpagedevice Operand stack: gs_std_e.ps gs_std_e.ps gs_std_e.ps