Fix for 687069 , pattern problem patch

Alex Cherepanov <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Organization Coscript Software
Message-ID <[email protected]>
PDF file generated from the sample file on GS 8.10 and 8.11 fails to
open on Acrobat Reader because of the missing entry in the resource
dictionary. gdevpdfj.c v. 1.26 fixes the problem. The latest version
compiles in GS 8.10 and 8.11 . The diff between v.1.25 and v.1.26 shows
what was done by Igor.

I'm asking Igor (or another reviewer) to confirm that gdevpdfj.c v.1.26
can be safely used in in GS 8.10 which is currently used by a customer.

_______________________________________________
gs-code-review mailing list
[email protected]
http://www.ghostscript.com/mailman/listinfo/gs-code-review
gdevpdfj.c.diff (text/plain, 728 B)
--- gdevpdfj.c-	2003-04-21 11:39:47.000000000 -0400
+++ gdevpdfj.c	2003-10-07 21:27:27.000000000 -0400
@@ -14,7 +14,7 @@
   San Rafael, CA  94903, U.S.A., +1(415)492-9861.
 */
 
-/* $Id: gdevpdfj.c,v 1.25 2003/04/21 15:39:47 igor Exp $ */
+/* $Id: gdevpdfj.c,v 1.26 2003/09/10 08:01:46 igor Exp $ */
 /* Image-writing utilities for pdfwrite driver */
 #include "memory_.h"
 #include "string_.h"
@@ -314,6 +314,9 @@
 	pxo->data_height = h;
 	piw->data = pcos;
 	piw->named = named;
+	code = pdf_add_resource(pdev, pdev->substream_Resources, "/XObject", piw->pres);
+	if (code < 0)
+	    return code;
     }
     pdev->strm = pdev->streams.strm;
     pdev->strm = cos_write_stream_alloc(piw->data, pdev, "pdf_begin_write_image");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.