Function

CGPDFContextAddDocumentMetadata

Associates custom metadata with the PDF document.

Declaration

void CGPDFContextAddDocumentMetadata(CGContextRef context, CFDataRef metadata);

Parameters

context

A PDF graphics context.

metadata

A stream of XML data that is formatted according to the Extensible Metadata Platform, as described in section 10.2.2., “Metadata Streams”, of the PDF 1.7 specification.