cairo_pdf_surface_set_metadata.Rd
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.
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)