UIGraphicsBeginPDFPage()
Marks the beginning of a new page in a PDF context and configures it using default values.
Declaration
func UIGraphicsBeginPDFPage()Discussion
This function ends any previous page before beginning a new one. It sets the media box of the new page to the rectangle you specified when you created the PDF context.
If the current graphics context is not a PDF context, this function does nothing.
You must call this function or the UIGraphicsBeginPDFPageWithInfo(_:_:) function before you issue any drawing commands.
See Also
PDF creation
UIGraphicsBeginPDFContextToData(_:_:_:)UIGraphicsBeginPDFContextToFile(_:_:_:)UIGraphicsEndPDFContext()UIGraphicsBeginPDFPageWithInfo(_:_:)UIGraphicsGetPDFContextBounds()UIGraphicsAddPDFContextDestinationAtPoint(_:_:)UIGraphicsSetPDFContextDestinationForRect(_:_:)UIGraphicsSetPDFContextURLForRect(_:_:)