Function

CGPDFContextClose

Closes a PDF document.

Declaration

void CGPDFContextClose(CGContextRef context);

Parameters

context

A PDF graphics context.

Discussion

After closing the context, all pending data is written to the context destination, and the PDF file is completed. No additional data can be written to the destination context after the PDF document is closed.