[gs-bugs] [Bug 695848] New: Ghostscript decode error when opening PDF

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Mon Feb 23 10:23:36 UTC 2015


http://bugs.ghostscript.com/show_bug.cgi?id=695848

            Bug ID: 695848
           Summary: Ghostscript decode error when opening PDF
           Product: Ghostscript
           Version: 9.15
          Hardware: PC
                OS: Windows 7
            Status: UNCONFIRMED
          Severity: normal
          Priority: P4
         Component: PDF Interpreter
          Assignee: ken.sharp at artifex.com
          Reporter: gunst.pieter at gmail.com
        QA Contact: gs-bugs at ghostscript.com
         Word Size: ---

Created attachment 11485
  --> http://bugs.ghostscript.com/attachment.cgi?id=11485&action=edit
The PDF that fails to open.

Hey,

I have this PDF that fails to open with Ghostscript. I have tried several PDF
analysis tools but none have reported that the PDF contains errors or is broken
in any way. I did not create the PDF so I don't know how it was made. The PDF:

http://bit.ly/1Ed4vvT

If I open it for example with IrfanView I get the following error:

http://bit.ly/1FNXcfY

"Ghostscript decode error. This file can't be loaded/decoded."

When trying to convert the PDF to PNG with nconvert using Ghostscript I get:


>nconvert.exe -dpi 300 -out png -merge_alpha -o out.png -xall odd_numbers.pdf

** NCONVERT v6.70 (c) 1991-2015 Pierre-E Gougelet (Feb 18 2015/16:46:22) **
        Version for Windows Xp/Vista/7 x64  (All rights reserved)
** This is freeware software (for non-commercial use)

GS: (C:\Program Files\gs\gs9.15\bin\gsdll64.dll)
ARG 0 -dNODISPLAY
ARG 1 -dQUIET
ARG 2 -sPDFname=odd_numbers.pdf
ARG 3 -sDSCname=C:\Users\Pieter\AppData\Local\Temp\x_6F65.tmp
ARG 4 pdf2dsc.ps
ARG 5 -c quit
==> 115
ERROR: -101
GS: (C:\Program Files\gs\gs9.15\bin\gsdll64.dll)
ARG 0 -dBATCH
ARG 1 -dMaxBitmap=300000000
ARG 2 -sDEVICE=tiff24nc
ARG 3 -dFirstPage=1
ARG 4 -dLastPage=1
ARG 5 -q
ARG 6 -dNOPAUSE
ARG 7 -dSAFER
ARG 8 -dTextAlphaBits=4
ARG 9 -dGraphicsAlphaBits=4
ARG 10 -g2478x3503
ARG 11 -r300x300
ARG 12 -sOutputFile=C:\Users\Pieter\AppData\Local\Temp\x_6FF2.tmp
ARG 13 odd_numbers.pdf
ARG 14 -c quit
ARG 15 -c quit
==> 233
Error: /typecheck in --aload--
Operand stack:
   --dict:18/18(L)--   --dict:18/18(L)--   1.0   1.0   1.0
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--   2   1   1  
--nostringval--
  %for_pos_int_continue   --nostringval--   --nostringval--   false   1  
%stopped_push   --nostringval--   --nostringval--   --nostringval--  
%array_continue   --nostri
ngval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--
  %loop_continue   --nostringval--
Dictionary stack:
   --dict:1194/1684(ro)(G)--   --dict:1/20(G)--   --dict:82/200(L)--  
--dict:82/200(L)--   --dict:116/127(ro)(G)--   --dict:280/300(ro)(G)--  
--dict:28/32(L)--   --dict
:6/8(L)--   --dict:24/40(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 9.15: Unrecoverable error, exit code 1
ERROR: -100
Unrecoverable error: typecheck in if
Operand stack:
    --nostringval--  false  false  --nostringval--
my_error_exit...<Not a JPEG file: starts with 0x25 0x50>
  Error: Don't know how to read this picture (odd_numbers.pdf)


I was reported to me that PDFs often fail to convert or be opened when they
contain abnormal page numbering. I have no idea if this is relevant but it
turned out be true for lots of PDFs containing alternating kinds op page
numbering like in the PDF I have provided.

kind regards,

Pieter

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the gs-bugs mailing list