Deprecated CGContext Functions
A function identified as deprecated has been superseded and may become unsupported in the future.
Deprecated in OS X v10.5
Draws a page of a PDF document into a graphics context. (Deprecated in OS X v10.5.)
void CGContextDrawPDFDocument ( CGContextRef c, CGRect rect, CGPDFDocumentRef document, int page );
The graphics context in which to draw the PDF page.
CGRectvalue 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.
The PDF document to draw.
A value that specifies the PDF page number to draw. If the specified page does not exist, the function does nothing.
For applications running in 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
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.5.
© 2003, 2013 Apple Inc. All Rights Reserved. (Last updated: 2013-01-28)