Class

UIGraphicsPDFRendererFormat

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

Declaration

@interface UIGraphicsPDFRendererFormat : UIGraphicsRendererFormat

Overview

Use this subclass of UIGraphicsRendererFormat to provide context configuration parameters to a UIGraphicsPDFRenderer.

Create an instance and then add PDF configuration parameters to the documentInfo dictionary.

Listing 1 demonstrates how you can use a PDF renderer format object to specify the author of the PDFs created by a PDF renderer.

Listing 1

Creating a PDF renderer format to specify the author of the PDF

UIGraphicsPDFRendererFormat *format = [[UIGraphicsPDFRendererFormat alloc] init];
format.documentInfo = @{ (NSString *)kCGPDFContextAuthor : @"Kate Bell" };
UIGraphicsPDFRenderer *renderer =
    [[UIGraphicsPDFRenderer alloc] initWithBounds:CGRectMake(0, 0, 500, 300)
                                           format:format];

Topics

Getting the PDF Document Info

documentInfo

A dictionary that specifies additional information to be associated with the PDFs created by the PDF renderer.

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.

UIGraphicsPDFRendererContext

A drawing environment associated with a PDF renderer.