Description Usage Arguments Details See Also
View source: R/cairo-pdf-surface.R
Set document metadata. The %CAIRO_PDF_METADATA_CREATE_DATE and %CAIRO_PDF_METADATA_MOD_DATE values must be in ISO-8601 format: YYYY-MM-DDThh:mm:ss. An optional timezone of the form "[+/-]hh:mm" or "Z" for UTC time can be appended. All other metadata values can be any UTF-8 string.
1 | cairo_pdf_surface_set_metadata(surface, metadata, utf8)
|
surface |
[ |
metadata |
[ |
utf8 |
[ |
For example: <informalexample><programlisting> cairo_pdf_surface_set_metadata (surface, CAIRO_PDF_METADATA_TITLE, "My Document"); cairo_pdf_surface_set_metadata (surface, CAIRO_PDF_METADATA_CREATE_DATE, "2015-12-31T23:59+02:00"); </programlisting></informalexample>
Since: 1.16
C function prototype: void cairo_pdf_surface_set_metadata (cairo_surface_t *surface, cairo_pdf_metadata_t metadata, const char *utf8)
Other cairo-pdf-surface:
cairo_pdf_surface_add_outline()
,
cairo_pdf_surface_create()
,
cairo_pdf_surface_restrict_to_version()
,
cairo_pdf_surface_set_page_label()
,
cairo_pdf_surface_set_size()
,
cairo_pdf_surface_set_thumbnail_size()
,
cairo_pdf_version_to_string()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.