mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 21:58:04 +02:00
PDF: Add newline to end of binary streams
PDF requires white space before the "endstream"
This commit is contained in:
parent
b87d81ef0b
commit
d85e836911
1 changed files with 2 additions and 0 deletions
|
|
@ -1588,6 +1588,7 @@ _cairo_pdf_surface_emit_jpx_image (cairo_pdf_surface_t *surface,
|
|||
|
||||
*res = surface->pdf_stream.self;
|
||||
_cairo_output_stream_write (surface->output, mime_data, mime_data_length);
|
||||
_cairo_output_stream_printf (surface->output, "\n");
|
||||
status = _cairo_pdf_surface_close_stream (surface);
|
||||
|
||||
*width = info.width;
|
||||
|
|
@ -1639,6 +1640,7 @@ _cairo_pdf_surface_emit_jpeg_image (cairo_pdf_surface_t *surface,
|
|||
|
||||
*res = surface->pdf_stream.self;
|
||||
_cairo_output_stream_write (surface->output, mime_data, mime_data_length);
|
||||
_cairo_output_stream_printf (surface->output, "\n");
|
||||
status = _cairo_pdf_surface_close_stream (surface);
|
||||
|
||||
*width = info.width;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue