mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-04 10:40:58 +01:00
Merge branch 'eps' into 'master'
PS: Wrap embedded EPS in %%BeginDocument/%%EndDocument as required by EPS spec Closes #620 See merge request cairo/cairo!403
This commit is contained in:
commit
7698cf546c
1 changed files with 4 additions and 0 deletions
|
|
@ -3295,7 +3295,11 @@ _cairo_ps_surface_emit_eps (cairo_ps_surface_t *surface,
|
|||
eps_width,
|
||||
eps_height);
|
||||
|
||||
_cairo_output_stream_printf (surface->stream,
|
||||
"%%%%BeginDocument: Document%d\n",
|
||||
params->src_surface->unique_id);
|
||||
_cairo_output_stream_write (surface->stream, eps_data, eps_data_len);
|
||||
_cairo_output_stream_printf (surface->stream, "%%%%EndDocument");
|
||||
_cairo_output_stream_printf (surface->stream, "\ncairo_eps_end\n");
|
||||
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue