2017-01-03 4 views
0

Я пытаюсь преобразовать pdf в pdf/a, используя следующую команду на сервере Windows 2012 r2.Попытка создать pdf/a из pdf с помощью ghostscript gswin8.56 32bit

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. 

ответ

0

Вы просто не можете сделать это с помощью версии Ghostscript, что старый (8.56 сейчас 9 лет). Текущая версия - 9.20, обновление.

Вы также должны убедиться, что указали полный путь профиля ICC в измененном файле pdfa_def.ps.

Смежные вопросы