- file
- File where the PDF will be stored.
- bounds
- Specifies the PDF size If the rectangle is empty, this creates a page configured to be 8.5x11 inches.
- documentInfo
- Optional configuration information in the CGPDFInfo.
UIKit keeps a stack of contexts, this method creates a new PDF context, makes it the default and places it at the top of the graphic context stacks.
To complete the use of this graphics context, call the UIGraphics.EndPDFContent method.
You must call the UIGraphics.BeginPDFPage() before producing any pages.
You can get the current context by calling the UIGraphics.GetCurrentContext() method.
This function can only be invoked from the UI thread.