Code

Fixed: Wrong colour space was used in images with transparency.
authorulferikson <ulferikson@users.sourceforge.net>
Sun, 13 Aug 2006 13:43:50 +0000 (13:43 +0000)
committerulferikson <ulferikson@users.sourceforge.net>
Sun, 13 Aug 2006 13:43:50 +0000 (13:43 +0000)
src/extension/internal/pdf-mini.h

index 3b68ac66bc344e2b1ae1c38f8d28357c56b83d36..3ca529f7e104b3435e0e78cb89e9cdd0004ee3a8 100644 (file)
@@ -245,6 +245,11 @@ PdfObject *PdfFile::begin_page(double x0, double y0, double x1, double y1) {
               << "  /MediaBox [ " << x0 << " " << y0 << " " << x1 << " " << y1 << " ]\n"\r
               << "  /Resources " << obj_resources->get_id() << " 0 R\n"\r
               << "  /Contents " << obj_contents->get_id() << " 0 R\n"\r
+              << "  /Group\n"\r
+              << "  << /Type /Group\n"\r
+              << "     /S /Transparency\n"\r
+              << "     /CS /DeviceRGB\n"\r
+              << "  >>\n"\r
               << ">>\n";\r
     end_object(obj_page);\r
     puts(obj_page);\r