2017-03-06 128 views
0

GhostScript的9.20是給下面的錯誤在嘗試將1頁的PDF轉換爲PCL:GhostScript的(9.20,AIX)錯誤轉換PDF到PCL

**** Error reading a content stream. The page may be incomplete. 
       Output may be incorrect. 
Error: /typecheck in --run-- 
Operand stack: 
    --dict:4/4(L)-- 9 11150 9 0 --nostringval-- AP --nostringval-- BS --nostringval-- DA (/Helv 10 Tf 0 g) F 4 FT Tx Ff 12587008 MK --nostringval-- P --nostringval-- Rect --nostringval-- Subtype Widget T (MissingInformation) Type V --nostringval-- Annot 
Execution stack: 
    %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1983 1 3 %oparray_pop 1982 1 3 %oparray_pop 1966 1 3 %oparray_pop --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- --nostringval-- 
Dictionary stack: 
    --dict:1205/1684(ro)(G)-- --dict:1/20(G)-- --dict:83/200(L)-- --dict:83/200(L)-- --dict:135/256(ro)(G)-- --dict:291/300(ro)(G)-- --dict:30/32(L)-- 
Current allocation mode is local 
GPL Ghostscript 9.20: Unrecoverable error, exit code 1 

它被在Unix的AIX與執行以下:

gs -dSAFER -sDEVICE=pxlmono -sPAPERSIZE=letter -dFIXEDMEDIA -dPDFFitPage 

Sample file that fails

任何想法,將不勝感激!

感謝,

羅恩

+0

我可以用'gs gsFail.pdf'簡單地重現它。也許這是正確的說「頁面可能不完整」? –

回答

0

您的PDF文件有錯誤。它包含一個註釋(對象9):

/V /APPTRIAGE#20CASEONED#3A#0D#0D...Part#20II#3A#20DrugExperimentation#20-#20Drugs#2FMedication#20Not#20Prescribed#3A #20Was#20doctor#20seen#3F#20Provide#20detail#20if#20yes。#0D#0D ...零件編號20II#3A#20AlcoholDrugTreatment#20-#20Alcohol#20Abuse#20Treatment#3A#20Was#20doctor#20seen#3F #20Provide#20detail#20if#20yes。#0D#0D ...零件編號20II#3A#20HivAids#20-#20HIV#3A#20Was#20doctor#20seen#3F#20Provide#20detail#20if#20yes。#0D# 0D ...零件編號20II#3A#20HivAids#20-#20AIDS#3A#20Was#20doctor#20seen#3F#20Provide#20detail#20if#20yes。#0D#0D ...零件編號20II#3A#20LiverDisease# 20-#20Esophagus#20Disorder#3A#20Was#20doctor#20seen#3F#20Provide#20detail#20if#20yes。#0D#0D ...零件編號20II#3A#20MentalDisorder#20-#20Counseling#20-#20Stress#圖3A#20Have#20you#20ever#20received#20disability#20or#20missed#20work#20due#20to#20psychiatric#20reasons#3F#20Provide#20details#20如果#20yes。#0D#0D ...零件編號20II#3A#20MentalDisorder#20-#20Counseling#20-#20Stress#3A#20Do#20you#20see#20A#20psychiatrist#20or#20counselor#3F#20Provide#20details #20if#20yes。#0D#0D ...零件編號20II#3A#20MentalDisorder#20-#20Counseling#20-#20Stress#3A#20Was#20doctor#20seen#3F#20Provide#20detail#20if#20yes。#0D #0D ...零件編號20II#3A#20MentalDisorder#20-#20Counseling#20-#20Stress#3A#20support#20group#20member#20info#20missing#0D#0D ...零件編號20II#3A#20MentalDisorder#20 - #20Counseling#20-#20Stress#3A#20date#20diagnosed#20missing#0D#0D ...零件編號20II#3A#20MentalDisorder#20-#20Counseling#20-#20Depression#3A#20Have#20you#20ever#20received #20disability#20or#20missed#20work#20due#20to#20psychiatric#20reasons#3F#20Provide#20details#20if#20yes。#0D#0D ...零件編號20II#3A#20MentalDisorder#20-#20Counseling#20-# 20Depression#3A#20Do#20you#20see#20A#20psychiatrist#20or#20counselor#3F#20Provide#20details#20if#20yes。#0D#0D ...零件編號20II#3A#20MentalDisorder#20-#20Counseling#20- #20Depression#3A#20Was#20doctor#20seen#3F#20Provide#20deta金正日#20if#20yes。#0D#0D ...零件編號20II#3A#20MentalDisorder#20-#20Counseling#20-#20Depression#3A#20support#20group#20member#20info#20missing#0D#0D部分... #20II#3A#20MentalDisorder#20-#20Counseling#20-#20Depression#3A#20date#20diagnosed#20missing#0D#0D ...零件編號20II#3A#20MentalDisorder#20-#20Counseling#20-#20Anxiety#3A #20Have#20you#20ever#20received#20disability#20or#20missed#20work#20due#20to#20psychiatric#20reasons#3F#20Provide#20details#20if#20yes。#0D#0D ...零件編號20II#3A#20MentalDisorder# 20-#20Counseling#20-#20Anxiety#3A#20Do#20you#20see#20A#20psychiatrist#20or#20counselor#3F#20Provide#20details#20if#20yes。#0D#0D ...零件編號20II#3A#20MentalDisorder #20-#20Counseling#20-#20Anxiety#3A#20Was#20doctor#20seen#3F#20Provide#20detail#20if#20yes。#0D#0D ...零件編號20II#3A#20MentalDisorder#20-#20Counseling#20 - #20焦慮#3A#20support#20group#20成員#20info#20missing#0D#0D#28Continued#20on#20next#20page#29

註釋的/ V字段可能是文本字符串或流。該註釋具有名稱對象。所以它立即不正確。除此之外,名稱對象還受到PDF參考附錄C中給出的127個字節的實施限制,這比這個怪物要小得多。 Ghostscript允許更大的名字,但不是這麼大。

即使我'修復',Ghostscript仍然不喜歡該文件,並且如果您在Acrobat中打開該文件,然後關閉它,它會提供'保存更改',這是一個很好的指示Acrobat已默默忽略了一個錯誤。

事實上,該文件已被編輯,編輯已進一步打破文件。

總之,你的文件壞了,這就是爲什麼它不起作用。