- 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
- Dictionary containing extra information for creating the PDF. Ideally, you can use the overload that uses the CGPDFInfo strong type instead of this overload.
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.