Marks the beginning of a new page in a PDF context and configures it using the specified values.
- iOS 3.2+
- tvOS 9.0+
- watchOS 2.0+
A rectangle that specifies the size and location of the new PDF page. This rectangle corresponds to the media box rectangle for the page.
A dictionary that specifies additional page-related information, such as the boxes that define different parts of the page. For a list of keys you can include in this dictionary, see Box Dictionary Keys in CGPDFContext. The dictionary is retained by the new page, so you may release it after this function returns.
nilif you do not want to associate any additional information with the page.
This function ends any previous page before beginning a new one. It sets the media box of the new page to the value in the
k key of the
page dictionary, or to the value in the
bounds parameter if the dictionary does not contain the key.
If the current graphics context is not a PDF context, this function does nothing.
You must call this function or the
UIGraphics function before you issue any drawing commands.