UIGraphicsEndPDFContext()
Closes a PDF graphics context and pops it from the current context stack.
Declaration
func UIGraphicsEndPDFContext()Discussion
You must call this function after you finish drawing to a PDF graphics context. This function closes the current open page and removes the PDF context from the graphics context stack. It also releases the CGContext associated with the PDF context. If the current graphics context is not a PDF context, this function does nothing.
See Also
PDF creation
UIGraphicsBeginPDFContextToData(_:_:_:)UIGraphicsBeginPDFContextToFile(_:_:_:)UIGraphicsBeginPDFPage()UIGraphicsBeginPDFPageWithInfo(_:_:)UIGraphicsGetPDFContextBounds()UIGraphicsAddPDFContextDestinationAtPoint(_:_:)UIGraphicsSetPDFContextDestinationForRect(_:_:)UIGraphicsSetPDFContextURLForRect(_:_:)