2011-09-09 3 views
0

Ghostscript가 PDF 파일을 축소하는 데 가장 좋은 도구라고 들었습니다. GNU Ghostscript 7.07을 설치했습니다. 그것은 완벽하게 작동 일부 파일의 경우Ghostscript 오류

system("gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 
    -dNOPAUSE -dQUIET -dBATCH -dPDFDEBUG -sOutputFile=output.pdf document.pdf"); 

을하지만 다른 경우, 출력 파일이 잘못되었거나 다른 아무것도 흰색 페이지가 있습니다 : 나는 다음과 같은 코드로 PHP를 통해 사용할 수 있습니다. 버전 때문일 수 있습니까?

내가 하나의 오류 메시지가 있어요 : 고스트의

Error: 
    /syntaxerror in readxref Operand stack: Execution stack: %interp_exit 
    .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push 
    --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 
    %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop --nostringval-- --nostringval-- 
    --nostringval-- --nostringval-- --nostringval-- --nostringval-- 
Dictionary stack: 
    --dict:1064/1123(ro)(G)-- --dict:0/20(G)-- --dict:93/200(L)-- --dict:93/200(L)-- 
    --dict:97/127(ro)(G)-- --dict:229/230(ro)(G)-- --dict:14/15(L)-- 
Current allocation mode is local 

답변

1

버전이 오래된 exceedingy, 당신은 확실히 업그레이드로 시작해야을, 현재 출하 버전은 9.04이다.