UIGraphics.BeginPDFContext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| BeginPDFContext(NSMutableData, CGRect, NSDictionary) |
Pushes a new PDF rendering context that writes to an NSMutableData object and makes it the current graphics context. |
| BeginPDFContext(String, CGRect, CGPDFInfo) |
Pushes a new PDF rendering context that writes to a file and makes it the current graphics context. |
| BeginPDFContext(String, CGRect, NSDictionary) |
Pushes a new PDF rendering context that writes to a file and makes it the current graphics context. |
BeginPDFContext(NSMutableData, CGRect, NSDictionary)
Pushes a new PDF rendering context that writes to an NSMutableData object and makes it the current graphics context.
public static void BeginPDFContext(Foundation.NSMutableData data, CoreGraphics.CGRect bounds, Foundation.NSDictionary documentInfo);
public static void BeginPDFContext(Foundation.NSMutableData data, CoreGraphics.CGRect bounds, Foundation.NSDictionary? documentInfo);
static member BeginPDFContext : Foundation.NSMutableData * CoreGraphics.CGRect * Foundation.NSDictionary -> unit
Parameters
- data
- NSMutableData
The mutable data object to write PDF output to.
- bounds
- CGRect
The bounds of the PDF page.
- documentInfo
- NSDictionary
Optional dictionary containing PDF document metadata, or null.
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 stack.
To close the PDF context and restore the previous graphics context, call the EndPDFContext() method.
This function can only be invoked from the UI thread.
Applies to
BeginPDFContext(String, CGRect, CGPDFInfo)
Pushes a new PDF rendering context that writes to a file and makes it the current graphics context.
public static void BeginPDFContext(string file, CoreGraphics.CGRect bounds, CoreGraphics.CGPDFInfo documentInfo);
public static void BeginPDFContext(string file, CoreGraphics.CGRect bounds, CoreGraphics.CGPDFInfo? documentInfo);
static member BeginPDFContext : string * CoreGraphics.CGRect * CoreGraphics.CGPDFInfo -> unit
Parameters
- file
- String
The path to the PDF file to create.
- bounds
- CGRect
The bounds of the PDF page.
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 stack.
To close the PDF context and restore the previous graphics context, call the EndPDFContext() method.
This function can only be invoked from the UI thread.
Applies to
BeginPDFContext(String, CGRect, NSDictionary)
Pushes a new PDF rendering context that writes to a file and makes it the current graphics context.
public static void BeginPDFContext(string file, CoreGraphics.CGRect bounds, Foundation.NSDictionary documentInfo);
public static void BeginPDFContext(string file, CoreGraphics.CGRect bounds, Foundation.NSDictionary? documentInfo);
static member BeginPDFContext : string * CoreGraphics.CGRect * Foundation.NSDictionary -> unit
Parameters
- file
- String
The path to the PDF file to create.
- bounds
- CGRect
The bounds of the PDF page.
- documentInfo
- NSDictionary
Optional dictionary containing PDF document metadata, or null.
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 stack.
To close the PDF context and restore the previous graphics context, call the EndPDFContext() method.
This function can only be invoked from the UI thread.