r15336 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:41 CEST 2010


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

Changeset: 
M  /trunk/Scribus/scribus/pdflib_core.cpp

Diffs:
Index: scribus/pdflib_core.cpp
===================================================================
--- scribus/pdflib_core.cpp	(revision 15335)
+++ scribus/pdflib_core.cpp	(revision 15336)
@@ -9725,12 +9725,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