Bug 690675 - gs on a pdf fails with Unsupported HalftoneType, Error: /unregistered in resolvehalftone
Summary: gs on a pdf fails with Unsupported HalftoneType, Error: /unregistered in reso...
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: 8.64
Hardware: PC Linux
: P4 normal
Assignee: Alex Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-31 10:36 UTC by William Bader
Modified: 2009-07-31 19:48 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
A PDF that produces the error. (1.59 MB, application/force-download)
2009-07-31 10:39 UTC, William Bader
Details
patch (398 bytes, patch)
2009-07-31 11:45 UTC, Alex Cherepanov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description William Bader 2009-07-31 10:36:26 UTC
I have a pdf that views OK with xpdf but fails with gs.  The PDF is 1.6 MB and I
can mail it on request.

$ gs 0727KDHD3.pdf 
GPL Ghostscript 8.64 (2009-02-03)
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1


   **** Unsupported HalftoneType --nostringval--. ***

Error: /unregistered in resolvehalftone
Operand stack:
   --nostringval--   --dict:11/20(L)--   --dict:5/5(L)--   --dict:7/7(L)--
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
--nostringval--   false   1   %stopped_push   1830   1   3   %oparray_pop   1829
  1   3   %oparray_pop   1813   1   3   %oparray_pop   --nostringval--  
--nostringval--   2   1   1   --nostringval--   %for_pos_int_continue  
--nostringval--   --nostringval--   --nostringval--   --nostringval--  
%array_continue   --nostringval--   false   1   %stopped_push   --nostringval--
  %loop_continue   --nostringval--   --dict:5/5(L)--   --nostringval--   5  
%dict_continue   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1143/1684(ro)(G)--   --dict:1/20(G)--   --dict:74/200(L)--  
--dict:74/200(L)--   --dict:106/127(ro)(G)--   --dict:278/300(ro)(G)--  
--dict:22/25(L)--   --dict:4/6(L)--   --dict:22/40(L)--   --dict:1/1(ro)(G)--  
--dict:1/1(ro)(G)--   --dict:1/1(ro)(G)--   --dict:2/5(L)--
Current allocation mode is local
Last OS error: 11
GPL Ghostscript 8.64: Unrecoverable error, exit code 1
Comment 1 William Bader 2009-07-31 10:39:55 UTC
Created attachment 5259 [details]
A PDF that produces the error.

$ ls -l 0727KDHD3.pdf 
-r--r--r-- 2 william users 1670225 2009-07-29 16:15 0727KDHD3.pdf
$ sum 0727KDHD3.pdf 
26501  1632
$ pdfinfo 0727KDHD3.pdf 
CreationDate:	Mon Jul 27 14:14:00 2009
ModDate:	Mon Jul 27 14:14:13 2009
Tagged: 	no
Pages:		1
Encrypted:	no
Page size:	810 x 1554 pts
File size:	1670225 bytes
Optimized:	yes
PDF version:	1.5
Comment 2 Alex Cherepanov 2009-07-31 11:45:42 UTC
Created attachment 5263 [details]
patch

This is yet another case of missing dereference of indirect objects.
Unfortunately, it's too late to include the fix into the upcoming release --
v. 8.70 .
Comment 3 William Bader 2009-07-31 12:13:16 UTC
Thanks! Changing get to oget fixed the problem for me in gs8.64.
Comment 4 Alex Cherepanov 2009-07-31 19:48:22 UTC
The patch has been committed as a rev. 9922.