Stween
07-18-2004, 03:25 PM
This is an irritation that's been getting at me for some time. I tend to view PDF and postscript files using the nice little viewer 'gv'. However, since installing Debian unstable a while back, gv has been giving me strange errors. Sometimes I've worked around this problem by using pdf2ps to convert the PDF to a postscript file, and then opening it, but it certainly doesn't always work.
For one file I have here just now, gv told me:
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:1048/1123(ro)(G)-- --dict:0/20(G)-- --dict:74/200(L)-- --dict:74/200(L)-- \
--dict:100/127(ro)(G)-- --dict:230/230(ro)(G)-- --dict:14/15(L)--
Current allocation mode is local
GPL Ghostscript 8.01: Unrecoverable error, exit code 1
And for the same file, pdf2ps gave me the same error (so the ghostscript libraries were presumably pumping this error out...)
Any Google searches I tried were fairly useless, this doesn't appear to be a problem many people have encountered before. I know I've certainly never seen it!
I'd probably let it lie if it just happened for one or two PDF's ... instead, this happens on all PDF's I try to open. I quickly decided to see if I needed to update my ghostscript libraries, but apparently not. I tried an 'apt-get install gs-afpl', which wasn't installed. I can open some PDF's now, but all are preceded by the error:
**** Warning: An error occurred while reading an XREF table.
**** The file has been damaged. This may have been caused
**** by a problem while converting or transfering the file.
**** Ghostscript will attempt to recover the data.... basically, I'm confused :) Does anybody have any idea why this might be broken, and how I might fix it?
Cheers,
Stween
For one file I have here just now, gv told me:
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:1048/1123(ro)(G)-- --dict:0/20(G)-- --dict:74/200(L)-- --dict:74/200(L)-- \
--dict:100/127(ro)(G)-- --dict:230/230(ro)(G)-- --dict:14/15(L)--
Current allocation mode is local
GPL Ghostscript 8.01: Unrecoverable error, exit code 1
And for the same file, pdf2ps gave me the same error (so the ghostscript libraries were presumably pumping this error out...)
Any Google searches I tried were fairly useless, this doesn't appear to be a problem many people have encountered before. I know I've certainly never seen it!
I'd probably let it lie if it just happened for one or two PDF's ... instead, this happens on all PDF's I try to open. I quickly decided to see if I needed to update my ghostscript libraries, but apparently not. I tried an 'apt-get install gs-afpl', which wasn't installed. I can open some PDF's now, but all are preceded by the error:
**** Warning: An error occurred while reading an XREF table.
**** The file has been damaged. This may have been caused
**** by a problem while converting or transfering the file.
**** Ghostscript will attempt to recover the data.... basically, I'm confused :) Does anybody have any idea why this might be broken, and how I might fix it?
Cheers,
Stween