pdfSurfaceSetMetadata

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.

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>

Parameters

surface cairo.surface.Surface

a PDF #cairo_surface_t

metadata cairo.types.PdfMetadata

The metadata item to set.

utf8 string

metadata value