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

Carl Worth cworth at kemper.freedesktop.org
Fri Aug 4 16:39:48 PDT 2006


 src/cairo-pdf-surface.c |    2 ++
 1 files changed, 2 insertions(+)

New commits:
diff-tree 761b30792d56f635fe1fb8641fdee21587505475 (from 2815d9ad38f2df45c58fbeb38591afba28b4917b)
Author: Dominic Lachowicz <domlachowicz at gmail.com>
Date:   Fri Aug 4 16:39:40 2006 -0700

    Add binary garbage to PDF header as recommended in section 3.4.1 of PDF Reference v1.6

diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index ef5126e..ee7b4a8 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -295,6 +295,8 @@ _cairo_pdf_surface_create_for_stream_int
     /* Document header */
     _cairo_output_stream_printf (surface->output,
 				 "%%PDF-1.4\r\n");
+    _cairo_output_stream_printf (surface->output,
+				 "%%%c%c%c%c\r\n", 181, 237, 174, 251);
 
     return _cairo_paginated_surface_create (&surface->base,
 					    CAIRO_CONTENT_COLOR_ALPHA,


More information about the cairo-commit mailing list