Reparar borken arquivo Postscript que só o ubuntu abre

0

Eu tento converter o arquivo postscript do link para um pdf que eu pode ver em qualquer computador. Quando tento convertê-lo, recebo um erro sobre a pilha:

Error: /rangecheck in --getinterval--
Operand stack:
(
Error: /rangecheck in --getinterval--
Operand stack:
(%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0...) 9 0 714 9 (%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0...) -714 9
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop 1739 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- %loop_continue --nostringval-- --nostringval-- %loop_continue --nostringval--
Dictionary stack:
--dict:1145/1684(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)-- --dict:138/300(L)-- --dict:96/200(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 373434
GPL Ghostscript 8.64: Unrecoverable error, exit code 1 
0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0...) 9 0 714 9 (%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0%pre%0...) -714 9 Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop 1739 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- %loop_continue --nostringval-- --nostringval-- %loop_continue --nostringval-- Dictionary stack: --dict:1145/1684(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)-- --dict:138/300(L)-- --dict:96/200(L)-- Current allocation mode is local Last OS error: 2 Current file position is 373434 GPL Ghostscript 8.64: Unrecoverable error, exit code 1

quando tento imprimi-lo, posso imprimir apenas metade dele. Felizmente, posso visualizá-lo no visualizador de documentos integrado do Ubuntu (posso acessar todas as páginas, mas não posso imprimi-las em um arquivo).

Como posso corrigir esse arquivo postscript específico e convertê-lo em pdf?

    
por Danis Fischer 20.03.2015 / 09:21

1 resposta

1

O problema é que um arquivo PS é um programa executável e pode executar ações impróprias, o que perturba a máquina virtual do ghostscript. Eu tinha localizado, a julgar pela posição retornada pelo ghostscript, quais são as páginas ofensivas; essas são as páginas 234 (36) e 250 (52). Então eu abri o arquivo .ps em um editor de texto e procurei por "%% Page: 234" e "%% Page: 250" e literalmente os recortei (até a próxima declaração %% Page) e alimentei o. ps arquivo para ghostscript (sem erros). Agora eu tenho um PDF sem 2 páginas.Essas páginas podem ser corrigidas por alguém que é bom em PostScript.

    
por 20.03.2015 / 11:55