-
Notifications
You must be signed in to change notification settings - Fork 153
Expand file tree
/
Copy pathPDFView.h
More file actions
executable file
·29 lines (23 loc) · 1007 Bytes
/
PDFView.h
File metadata and controls
executable file
·29 lines (23 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// PDFView.h
//
// Created by Nigel Barber on 15/10/2011.
// Copyright 2011 Mindbrix Limited. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PDFView : UIView
{
}
@property( nonatomic, assign ) NSUInteger page;
@property( nonatomic, strong ) NSString *resourceName;
@property( nonatomic, strong ) NSURL *resourceURL;
@property( nonatomic, strong ) NSData *resourceData;
+(CGRect) mediaRect:(NSString *)resourceName;
+(CGRect) mediaRectForURL:(NSURL *)resourceURL;
+(CGRect) mediaRectForURL:(NSURL *)resourceURL atPage:(NSUInteger)page;
+(CGRect) mediaRectForData:(NSData *)data atPage:(NSUInteger)page;
+(NSUInteger) pageCountForURL:(NSURL *)resourceURL;
+(NSURL *)resourceURLForName:(NSString *)resourceName;
+(NSURL *)resourceURLForName:(NSString *)resourceName formBundle:(NSBundle *)bundle;
+(void)renderIntoContext:(CGContextRef)ctx url:(NSURL *)resourceURL data:(NSData *)resourceData size:(CGSize)size page:(NSUInteger)page preserveAspectRatio:(BOOL)preserveAspectRatio;
@end