CatNiP docutest
Sähköinen nuottikirja, HY-TKTKL-OHTUPROJ KESÄ11
|
#import <UIDocumentPDF.h>
Public Member Functions | |
(void) | - dealloc [implementation] |
(UIImage *) | - getImageOfPage: [implementation] |
Draws and returns an image of the specified page of the document. | |
(CGSize) | - getSizeOfPage: [implementation] |
Returns the size of the specified page. | |
(id) | - init [implementation] |
Initializes the internal variables of the object. | |
(id) | - initWithCGPDFDocument: |
Initializes and returns the document object with the specified Quartz PDF document reference. | |
(id) | - initWithContentsOfFile: [implementation] |
Initializes and returns the document object with the contents of the specified PDF file. | |
(id) | - initWithData: [implementation] |
Initializes and returns the document object with the specified PDF data. | |
Static Public Member Functions | |
(UIDocumentPDF *) | + documentWithCGPDFDocument: |
Creates and returns a document object representing the specified Quartz PDF document. | |
Protected Attributes | |
CGPDFDocumentRef | document |
Properties | |
CGPDFBox | box |
The PDF box type to use for the pages in this document. | |
CGPDFDocumentRef | CGPDFDocument |
The underlying Quartz PDF document data. |
- (void) dealloc | [implementation] |
+ (UIDocumentPDF *) documentWithCGPDFDocument: | (CGPDFDocumentRef) | CGPDFDocument |
Creates and returns a document object representing the specified Quartz PDF document.
CGPDFDocument | The Quartz PDF document object. |
- (UIImage *) getImageOfPage: | (int) | pageNumber | [implementation] |
Draws and returns an image of the specified page of the document.
pageNumber | The number of the page, starting from 1. |
Reimplemented from UIDocument.
- (CGSize) getSizeOfPage: | (int) | pageNumber | [implementation] |
Returns the size of the specified page.
pageNumber | The number of the page, starting from 1. |
Reimplemented from UIDocument.
- (id) init | [implementation] |
Initializes the internal variables of the object.
Do not use this method to initialize new instances of the object. It only encapsulates common initialization code and does not actually load a PDF document into the object. Use initWithCGPDFDocument, initWithContentsOfFile or initWithData instead.
- (id) initWithCGPDFDocument: | (CGPDFDocumentRef) | CGPDFDocument |
Initializes and returns the document object with the specified Quartz PDF document reference.
CGPDFDocument | A Quartz PDF document reference. |
- (id) initWithContentsOfFile: | (NSString *) | path | [implementation] |
Initializes and returns the document object with the contents of the specified PDF file.
path | The path to the file. |
Reimplemented from UIDocument.
- (id) initWithData: | (NSData *) | data | [implementation] |
Initializes and returns the document object with the specified PDF data.
data | The data object containing the document data. |
Reimplemented from UIDocument.
- (CGPDFDocumentRef) document [protected] |
- (CGPDFBox) box [read, write, assign] |
The PDF box type to use for the pages in this document.
Default is kCGPDFMediaBox.
- (CGPDFDocumentRef) CGPDFDocument [read, assign] |
The underlying Quartz PDF document data.
(read-only)