Class

UIGraphicsPDFRendererContext

A drawing environment associated with a PDF renderer.

Declaration

@interface UIGraphicsPDFRendererContext : UIGraphicsRendererContext

Overview

When using the UIGraphicsPDFRenderer drawing methods, you must pass a block of type UIGraphicsPDFDrawingActions as an argument, which provides a UIGraphicsPDFRendererContext instance as an argument. Use the context object to access high-level drawing functions and the underlying Core Graphics context.

To learn how to use a UIGraphicsPDFRendererContext object in combination with a PDF renderer, see Creating a Graphics PDF Renderer.

Topics

Marking New Pages

- beginPage

Marks the beginning of a new page in the PDF context and configures it using default values.

- beginPageWithBounds:pageInfo:

Marks the beginning of a new page in the PDF context and configures it using the specified values.

Getting the PDF Bounds

pdfContextBounds

The bounds of the PDF context for the current page.

Managing Destinations

- addDestinationWithName:atPoint:

Creates a named destination point in the current PDF page.

- setDestinationWithName:forRect:

Creates a link rectangle in the current page that when clicked, will jump the PDF viewer to the named destination.

- setURL:forRect:

Creates a link to an external resource defined by a URL

Relationships

See Also

Drawing Contexts

UIGraphicsRenderer

An abstract base class for creating graphics renderers.

UIGraphicsRendererContext

The base class for the drawing environments associated with graphics renderers.

UIGraphicsRendererFormat

A set of drawing attributes that represent the configuration of a graphics renderer context.

UIGraphicsImageRenderer

A graphics renderer for creating Core Graphics-backed images.

UIGraphicsImageRendererContext

The drawing environment associated with an image renderer.

UIGraphicsImageRendererFormat

A set of drawing attributes that represent the configuration of an image renderer context.

UIGraphicsPDFRenderer

A graphics renderer for creating PDFs.

UIGraphicsPDFDrawingActions

A handler block that you use to draw PDF content.

UIGraphicsPDFRendererFormat

A set of drawing attributes that represents the configuration of a PDF renderer context.