CatNiP docutest
Sähköinen nuottikirja, HY-TKTKL-OHTUPROJ KESÄ11
|
#import <UIDocument.h>
Public Member Functions | |
(UIImage *) | - getImageOfPage: |
Draws and returns an image of the specified page of the document. | |
(CGSize) | - getSizeOfPage: |
Returns the size of the specified page. | |
(id) | - initWithContentsOfFile: |
Initializes and returns the document object with the contents of the specified file. | |
(id) | - initWithData: |
Initializes and returns the document object with the specified data. | |
Static Public Member Functions | |
(UIDocument *) | + documentWithContentsOfFile: |
Creates and returns a document object by loading the document data from the file at the specified path. | |
(UIDocument *) | + documentWithData: |
Creates and returns a document object that uses the specified document data. | |
Properties | |
int | numberOfPages |
The number of pages in the document. | |
CGSize | size |
The dimensions of the entire document, in points, when its pages are vertically concatenated with zero margins. |
+ (UIDocument *) documentWithContentsOfFile: | (NSString *) | path |
Creates and returns a document object by loading the document data from the file at the specified path.
path | The full or partial path to the file. |
+ (UIDocument *) documentWithData: | (NSData *) | data |
Creates and returns a document object that uses the specified document data.
data | The document data. This can be data from a file or data you create programmatically. |
- (UIImage *) getImageOfPage: | (int) | pageNumber |
Draws and returns an image of the specified page of the document.
pageNumber | The number of the page, starting from 1. |
Reimplemented in UIDocumentPDF.
- (CGSize) getSizeOfPage: | (int) | pageNumber |
Returns the size of the specified page.
pageNumber | The number of the page, starting from 1. |
Reimplemented in UIDocumentPDF.
- (id) initWithContentsOfFile: | (NSString *) | path |
Initializes and returns the document object with the contents of the specified file.
path | The path to the file. |
Reimplemented in UIDocumentPDF.
- (id) initWithData: | (NSData *) | data |
Initializes and returns the document object with the specified data.
data | The data object containing the document data. |
Reimplemented in UIDocumentPDF.
- (int) numberOfPages [read, assign] |
The number of pages in the document.
- (CGSize) size [read, assign] |
The dimensions of the entire document, in points, when its pages are vertically concatenated with zero margins.
Page orientation is taken into account.