UIKit.UIGraphics.BeginPDFContext Method
Creates and new PDF context and makes it the current graphics context, saving the results to the specified file.

Syntax

public static void BeginPDFContext (string file, CoreGraphics.CGPDFInfo documentInfo, CoreGraphics.CGRect bounds)

Parameters

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.

Remarks

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.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0