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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software