UIKit.UIGraphics.BeginPDFContext Method
Creates and new PDF context and makes it the current graphics context, saving to an NSMutableData object.

Syntax

public static void BeginPDFContext (Foundation.NSMutableData data, Foundation.NSDictionary documentInfo, CoreGraphics.CGRect bounds)

Parameters

data
Object that will hold the resulting PDF from the drawing operations.
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.

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