set_metadata#
Sets one document metadata field of the PDF.
$pdf->set_metadata(‘title’, ‘Quarterly report’);
$metadata names the field: 'title', 'author', 'subject', 'keywords', 'creator', 'create-date' or 'mod-date'. The two date fields take an ISO 8601 string. Needs cairo 1.16 or newer; on an older library the call dies saying so. Wraps cairo_pdf_surface_set_metadata.