[cairo-commit] src/cairo-pdf-surface.c

Adrian Johnson ajohnson at kemper.freedesktop.org
Tue Mar 6 04:43:00 PST 2007


 src/cairo-pdf-surface.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

New commits:
diff-tree 81b98c93b68839d20d3033170eeb5026257d52b8 (from 8f0ff52cf74fe4b18c46f9a62689b991645295d0)
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Tue Mar 6 23:11:38 2007 +1030

    PDF: Set page group color space to DeviceRGB
    
    See http://lists.freedesktop.org/archives/cairo/2006-November/008551.html

diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index eddff61..b4fa30e 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -2534,9 +2534,12 @@ _cairo_pdf_surface_write_page (cairo_pdf
 				     stream.id);
     }
     _cairo_output_stream_printf (surface->output,
-				 " ]\r\n");
-
-    _cairo_output_stream_printf (surface->output,
+				 " ]\r\n"
+                                 "   /Group <<\r\n"
+                                 "      /Type /Group\r\n"
+                                 "      /S /Transparency\r\n"
+                                 "      /CS /DeviceRGB\r\n"
+                                 "   >>\r\n"
 				 ">>\r\n"
 				 "endobj\r\n");
 


More information about the cairo-commit mailing list