Deprecated CGContext Functions

A function identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in Mac OS X v10.5

CGContextDrawPDFDocument

Draws a page of a PDF document into a graphics context. (Deprecated in Mac OS X v10.5.)

void CGContextDrawPDFDocument (
   CGContextRef c,
   CGRect rect,
   CGPDFDocumentRef document,
   int page
);
Parameters
c

The graphics context in which to draw the PDF page.

rect

A CGRect value that specifies the dimensions and location of the area in which to draw the PDF page, in units of the user space. When drawn, Quartz scales the media box of the page to fit the rectangle you specify.

document

The PDF document to draw.

page

A value that specifies the PDF page number to draw. If the specified page does not exist, the function does nothing.

Special Considerations

For applications running in Mac OS X version 10.3 and later, it is recommended that you replace this function with CGContextDrawPDFPage. If you do so, and want to specify the drawing rectangle, you should use CGPDFPageGetDrawingTransform to get an appropriate transform, concatenate it with the current transformation matrix, clip to the rectangle, and then call CGContextDrawPDFPage.

Availability
Related Sample Code
Declared In
CGContext.h


© 2003, 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-05-26)