O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSPDFImageRep — Mac OS X 10.0

Synopsis

This is a subclass of NSImageRep that understands how to manipulate, represent, and draw PDF-formatted image data.

image with no caption

@interface NSPDFImageRep : NSImageRep
                                  // Initializers
   - (id)initWithData:(NSData*)pdfData;
                                  // Class Methods
   + (id)imageRepWithData:(NSData*)pdfData;
                                  // Instance Methods
   - (int) currentPage;
   - (int) pageCount;
   - (void)setCurrentPage:(int)page;
   - (NSData*)PDFRepresentation;
   - (NSRect)bounds;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required