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

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

rotatedRect

CGRect value holding the rotated original rectangle.

@property (nonatomic, readonly) CGRect rotatedRect

Discussion

CGRect value holding the rotated original rectangle.

Declared In

YLPageInfo.h

rotation

Rotation angle of the page.

@property (nonatomic, readonly) int rotation

Discussion

Rotation angle of the page.

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