[cairo-commit] 2 commits - src/cairo-ps-surface.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jan 12 21:06:58 UTC 2023
src/cairo-ps-surface.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 7698cf546ceb74b6a1968d4b4f090ca2e0f198ee
Merge: 1e0249ae0 dc4a887e7
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Thu Jan 12 21:06:56 2023 +0000
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
commit dc4a887e7f4bf5f45ccb096fae50809b216b51d5
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Thu Jan 12 07:27:48 2023 +1030
PS: Wrap embedded EPS in %%BeginDocument/%%EndDocument as required by EPS spec
Fixes #620
diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c
index 8999f45d5..beccc0151 100644
--- a/src/cairo-ps-surface.c
+++ b/src/cairo-ps-surface.c
@@ -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;
More information about the cairo-commit
mailing list