mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-07 15:38:02 +02:00
Add binary garbage to PDF header as recommended in section 3.4.1 of PDF Reference v1.6
This commit is contained in:
parent
2815d9ad38
commit
761b30792d
1 changed files with 2 additions and 0 deletions
|
|
@ -295,6 +295,8 @@ _cairo_pdf_surface_create_for_stream_internal (cairo_output_stream_t *output,
|
|||
/* 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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue