| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AppKit.framework |
| Availability | Available in Mac OS X v10.0 and later. |
| Companion guide | |
| Declared in | NSPDFImageRep.h |
| Related sample code |
An NSPDFImageRep object can render an image from a PDF format data stream.
Creates and returns an NSPDFImageRep object initialized with the specified PDF data.
+ (id)imageRepWithData:(NSData *)pdfData
A data object containing the PDF data for the image.
An initialized NSPDFImageRep object or nil if the object could not be initialized. Initialization may fail if the PDF data does not conform to the PDF file format.
NSPDFImageRep.hReturns the receiver's bounding rectangle.
- (NSRect)bounds
The bounding rectangle. This value is equivalent to the crop box specified by the PDF data.
NSPDFImageRep.hGets the page currently displayed by the image representation.
- (NSInteger)currentPage
A zero-based index indicating the page being displayed.
NSPDFImageRep.hReturns an NSPDFImageRep object initialized with the specified PDF data.
- (id)initWithData:(NSData *)pdfData
A data object containing the PDF data for the image.
An initialized NSPDFImageRep object or nil if the object could not be initialized. Initialization may fail if the PDF data does not conform to the PDF file format.
NSPDFImageRep.hReturns the number of pages in the receiver.
- (NSInteger)pageCount
The number of pages in the PDF data.
NSPDFImageRep.h
Returns the PDF representation of the receiver's image.
- (NSData *)PDFRepresentation
The PDF data used to create the receiver.
NSPDFImageRep.hSets the page to display to the specified value.
- (void)setCurrentPage:(NSInteger)page
A zero-based index indicating the page you want to display.
NSPDFImageRep.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-01-26)