r15335 by jghali - #9268: "Printer color model" option creates PDF with missing or invisible content when pdf embedding option is enabled

scribus-commit scribus-commit at lists.scribus.net
Fri Jul 16 00:40:22 CEST 2010


Revision: 15335
Author: jghali
Date: 2010-07-15T22:36:42.451422Z
Commit message: #9268: "Printer color model" option creates PDF with missing or invisible content when pdf embedding option is enabled

Changeset: 
M  /branches/Version135/Scribus/scribus/pdflib_core.cpp

Diffs:
Index: scribus/pdflib_core.cpp
===================================================================
--- scribus/pdflib_core.cpp	(revision 15334)
+++ scribus/pdflib_core.cpp	(revision 15335)
@@ -7289,12 +7289,14 @@
 	{
 		if (isEmbeddedPDF)
 		{
-			if (Options.isGrayscale)
+			// #9268 : per specs default color space is grayscale
+			/*if (Options.isGrayscale)
 				embedPre = "0 g 0 G";
 			else if (Options.UseRGB)
 				embedPre = "0 0 0 rg 0 0 0 RG";
 			else
-				embedPre = "0 0 0 0 k 0 0 0 0 K";
+				embedPre = "0 0 0 0 k 0 0 0 0 K";*/
+			embedPre  = "0 g 0 G";
 			embedPre += " 1 w 0 J 0 j [] 0 d\n"; // add default graphics stack parameters pdftex relies on them
 		}
 		if (c->asLatexFrame())




More information about the scribus-commit mailing list