YLPageInfo Class Reference
Inherits from | NSObject |
Declared in | YLPageInfo.h YLPageInfo.m |
Overview
Model object that holds various information about a PDF page like rectangle, rotation and page number.
Tasks
-
origRect
CGRect value holding the original rectangle value as specified in the PDF file. This value is obtained using the kCGPDFCropBox type.
property -
rotatedRect
CGRect value holding the rotated original rectangle.
property -
rotation
Rotation angle of the page.
property -
page
Page number.
property -
+ YLPageInfoWithPage:rect:rotation:
Initializes a YLPageInfo object and returns it to the caller.
-
– initWithPage:rect:rotation:
Initializes a YLPageInfo object and returns it to the caller.
Properties
origRect
CGRect value holding the original rectangle value as specified in the PDF file. This value is obtained using the kCGPDFCropBox type.
@property (nonatomic, readonly) CGRect origRect
Discussion
CGRect value holding the original rectangle value as specified in the PDF file. This value is obtained using the kCGPDFCropBox type.
Declared In
YLPageInfo.h
page
Page number.
@property (nonatomic, readonly) NSUInteger page
Discussion
Page number.
Declared In
YLPageInfo.h
Class Methods
YLPageInfoWithPage:rect:rotation:
Initializes a YLPageInfo object and returns it to the caller.
+ (YLPageInfo *)YLPageInfoWithPage:(NSUInteger)page rect:(CGRect)rect rotation:(int)rotation
Parameters
- page
The page number (starting from 0).
- rect
The original rectangle.
- rotation
The rotation angle.
Return Value
An initialized YLPageInfo object.
Discussion
Initializes a YLPageInfo object and returns it to the caller.
Declared In
YLPageInfo.h
Instance Methods
initWithPage:rect:rotation:
Initializes a YLPageInfo object and returns it to the caller.
- (id)initWithPage:(NSUInteger)page rect:(CGRect)rect rotation:(int)rotation
Parameters
- page
The page number (starting from 0).
- rect
The original rectangle.
- rotation
The rotation angle.
Return Value
An initialized YLPageInfo object.
Discussion
Initializes a YLPageInfo object and returns it to the caller.
Declared In
YLPageInfo.h