mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 03:48:03 +02:00
PDF: Add cairo version to document info dictionary
This commit is contained in:
parent
5aaa1988c7
commit
830804c7ae
1 changed files with 5 additions and 3 deletions
|
|
@ -1473,11 +1473,13 @@ _cairo_pdf_surface_write_info (cairo_pdf_surface_t *surface)
|
|||
info = _cairo_pdf_surface_new_object (surface);
|
||||
_cairo_output_stream_printf (surface->output,
|
||||
"%d 0 obj\r\n"
|
||||
"<< /Creator (cairographics.org)\r\n"
|
||||
" /Producer (cairographics.org)\r\n"
|
||||
"<< /Creator (cairo %s (http://cairographics.org))\r\n"
|
||||
" /Producer (cairo %s (http://cairographics.org))\r\n"
|
||||
">>\r\n"
|
||||
"endobj\r\n",
|
||||
info.id);
|
||||
info.id,
|
||||
cairo_version_string (),
|
||||
cairo_version_string ());
|
||||
|
||||
return info;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue