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.h
Returns the receiver's bounding rectangle.
- (NSRect)bounds
The bounding rectangle. This value is equivalent to the crop box specified by the PDF data.
NSPDFImageRep.h
Gets the page currently displayed by the image representation.
- (NSInteger)currentPage
A zero-based index indicating the page being displayed.
NSPDFImageRep.h
Returns 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.h
Returns 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.h
Sets 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)