Bug 690559 - Some PDF files will not shown correctly
Summary: Some PDF files will not shown correctly
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: 689340
Blocks:
  Show dependency tree
 
Reported: 2009-06-23 05:55 UTC by Dr. Werner Fink
Modified: 2011-04-09 05:05 UTC (History)
3 users (show)

See Also:
Customer:
Word Size: ---


Attachments
test.pdf (526.86 KB, application/octec-stream)
2009-06-23 05:59 UTC, Dr. Werner Fink
Details
ghostscript-8.64-pdf.dif (2.84 KB, patch)
2009-06-23 06:01 UTC, Dr. Werner Fink
Details | Diff
ghostscript-8.64-pdf.dif (2.08 KB, patch)
2009-07-09 04:23 UTC, Dr. Werner Fink
Details | Diff
bug-152780_support-graf.pdf (114.76 KB, application/octec-stream)
2009-07-10 04:54 UTC, Dr. Werner Fink
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dr. Werner Fink 2009-06-23 05:55:58 UTC
Some PDF files will not shown correctly:

 some printer drivers do not know about some features like PageUsesTransparency
 PDF with overprint may not show images
Comment 1 Dr. Werner Fink 2009-06-23 05:59:17 UTC
Created attachment 5142 [details]
test.pdf

See this pdf file, please compare the output of both

       gs -sDEVICE=x11
       gs -sDEVICE=x11alpha

as you can see the bitmaps for the signatures are not
shown with x11alpha.
Comment 2 Dr. Werner Fink 2009-06-23 06:01:31 UTC
Created attachment 5143 [details]
ghostscript-8.64-pdf.dif

This patch I use currently for a workaround the problems seen
with this and some other pdf files.
Comment 3 Dr. Werner Fink 2009-07-09 04:23:32 UTC
Created attachment 5199 [details]
ghostscript-8.64-pdf.dif

During debugging for bug #690575 I found out that two parts are not required
with ghostscript 8.64 (gdevpdfo.c and gdevpdfr.c) but solve the extrem slowdown

of the pfdwrite device.  These two changes I had introduced to avoid crashes of

ghostscript 8.62 with the PostScript files
http://sips.inesc-id.pt/~pfzt/gs_bug_fig.eps and
http://sips.inesc-id.pt/~pfzt/gs_bug_fig2.eps
without noticing the side effect.
Comment 4 Ken Sharp 2009-07-09 04:49:00 UTC
Hmm, can I just check what you are saying ? 

If you don't apply the two changes to the pdfwrite sources in the first diff
here, then the slowdown you see in issue #690575 does not occur ? That would
explain why I don't see that problem of course.

You are then also saying that you introduced those changes to fix a problem with
8.62 and with the 8.64 code these pdfwrite changes are not required at all ?
Comment 5 Dr. Werner Fink 2009-07-09 04:59:40 UTC
Yes exactly this is what I've said ... gs 8.62 had run onto a NULL
pointer without these two changes (compare with the report found at
http://bugzilla.novell.com/show_bug.cgi?id=409605) and now gs 8.64
does not.
Comment 6 Dr. Werner Fink 2009-07-10 04:54:05 UTC
Created attachment 5203 [details]
bug-152780_support-graf.pdf

Yet an other pdf file which cause trouble with ghostscript.
It is visible with  `gs -sDEVICE=x11' but cause a fatal error
if `gs -sDEVICE=x11alpha' is used:

  > gs -sDEVICE=x11alpha bug-152780_support-graf.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 COPYING for details.
  Processing pages 1 through 1.
  Page 1
  Error: /unknownerror in --run--
  Operand stack:
     --nostringval--   --dict:6/15(L)--   0.0	596.0
  Execution stack:
  %interp_exit	 .runexec2   --nostringval--   --nostringval--	
--nostringval--   2   %stopped_push   --nostringval--	--nostringval--  
--nostringval--   false   1   %stopped_push   1878   1	 3   %oparray_pop  
1877   1   3   %oparray_pop   1861   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	--nostringval--   false
  1   %stopped_push   --nostringval--	%loop_continue	 --nostringval--
  Dictionary stack:
  --dict:1166/3371(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:21/40(L)--   --dict:3/5(L)--
  Current allocation mode is local
  Last OS error: 11
  GPL Ghostscript 8.64: Unrecoverable error, exit code 1

... for this I've no patch around.
Comment 7 Hin-Tak Leung 2009-12-18 19:27:04 UTC
removing the bbox_create_compositor line
(http://bugs.ghostscript.com/show_bug.cgi?id=689340#c6) fixes the crash with
attachment 5203 [details].
Comment 8 Hin-Tak Leung 2009-12-18 19:28:59 UTC
removing the compositor line also make attachment 5142 [details] display correctly, so it
is a simplier "fix" than 5199, as far as 'fix' goes.
Comment 9 Michael Vrhel 2011-04-09 05:05:31 UTC
This appears to be fixed with rev 12380