Bug 91935

Summary: kghostview can't open file due to a corrupt EOF marker
Product: [Applications] okular Reporter: Tro <tro>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: aacid, adrian
Priority: NOR    
Version: 0.15.2   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Tro 2004-10-23 05:39:41 UTC
Version:            (using KDE KDE 3.3.1)
Installed from:    Gentoo Packages
Compiler:          gcc (GCC) 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6) 
OS:                Linux

Kghostview can't open some pdf files. The file I'm having difficulties with can be found here (http://www.scar.utoronto.ca/~hashim/stab52/b52as3.pdf). The error from stderr:

   **** This file has a corrupted %%EOF marker, or garbage after the %%EOF.
Error: /syntaxerror in findxref
Operand stack:
   417170   713212
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   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1055/1417(ro)(G)--   --dict:0/20(G)--   --dict:74/200(L)--   --dict:97/127(ro)(G)--   --dict:229/230(ro)(G)--   --dict:10/15(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 2351
ESP Ghostscript 7.07.1: Unrecoverable error, exit code 1


Acroread has no problem working with that file.
Comment 1 Alex Cherepanov 2005-12-07 05:41:48 UTC
Works in GS 8.51 or higher.
Comment 2 Adrián Chaves (Gallaecio) 2012-10-16 06:04:01 UTC
Okular can’t open the file.
Comment 3 Albert Astals Cid 2012-10-16 17:46:04 UTC
Can't open *which* file?
Comment 4 Adrián Chaves (Gallaecio) 2012-10-16 17:52:22 UTC
Lol… The HTML page I saved as a PDF when left-clicking the link to the PDF and selecting Save As…

So, Tro, can you attach the document or check yourself whether or not it works with Okular?
Comment 5 Albert Astals Cid 2014-05-08 08:34:41 UTC
No answer for years.