-
Notifications
You must be signed in to change notification settings - Fork 153
Expand file tree
/
Copy pathUIImage+PDF.h
More file actions
executable file
·71 lines (46 loc) · 2.83 KB
/
UIImage+PDF.h
File metadata and controls
executable file
·71 lines (46 loc) · 2.83 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//
// UIImage+PDF.h
//
// Created by Nigel Barber on 15/10/2011.
// Copyright 2011 Mindbrix Limited. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "UIView+Image.h"
#import "NTBPDFView.h"
#import "NSData+MD5.h"
#import "NSString+MD5.h"
@interface UIImage( PDF )
+(void)setShouldCacheOnDisk:(BOOL)shouldCache; // Default = YES
+(void)setShouldCacheInMemory:(BOOL)shouldCache; // Default = NO
+(UIImage *) imageOrPDFNamed:(NSString *)resourceName;
+(UIImage *) imageOrPDFWithContentsOfFile:(NSString *)path;
+(UIImage *) imageWithPDFNamed:(NSString *)resourceName atSize:(CGSize)size atPage:(NSUInteger)page;
+(UIImage *) imageWithPDFNamed:(NSString *)resourceName atSize:(CGSize)size;
+(UIImage *) imageWithPDFNamed:(NSString *)resourceName atWidth:(CGFloat)width atPage:(NSUInteger)page;
+(UIImage *) imageWithPDFNamed:(NSString *)resourceName atWidth:(CGFloat)width;
+(UIImage *) imageWithPDFNamed:(NSString *)resourceName atHeight:(CGFloat)height atPage:(NSUInteger)page;
+(UIImage *) imageWithPDFNamed:(NSString *)resourceName atHeight:(CGFloat)height;
+(UIImage *) imageWithPDFNamed:(NSString *)resourceName fitSize:(CGSize)size atPage:(NSUInteger)page;
+(UIImage *) imageWithPDFNamed:(NSString *)resourceName fitSize:(CGSize)size;
+(UIImage *) originalSizeImageWithPDFNamed:(NSString *)resourceName atPage:(NSUInteger)page;
+(UIImage *) originalSizeImageWithPDFNamed:(NSString *)resourceName;
+(UIImage *) imageWithPDFURL:(NSURL *)URL atSize:(CGSize)size atPage:(NSUInteger)page;
+(UIImage *) imageWithPDFURL:(NSURL *)URL atSize:(CGSize)size;
+(UIImage *) imageWithPDFURL:(NSURL *)URL atWidth:(CGFloat)width atPage:(NSUInteger)page;
+(UIImage *) imageWithPDFURL:(NSURL *)URL atWidth:(CGFloat)width;
+(UIImage *) imageWithPDFURL:(NSURL *)URL atHeight:(CGFloat)height atPage:(NSUInteger)page;
+(UIImage *) imageWithPDFURL:(NSURL *)URL atHeight:(CGFloat)height;
+(UIImage *) imageWithPDFURL:(NSURL *)URL fitSize:(CGSize)size atPage:(NSUInteger)page;
+(UIImage *) imageWithPDFURL:(NSURL *)URL fitSize:(CGSize)size;
+(UIImage *) imageWithPDFData:(NSData *)data atSize:(CGSize)size;
+(UIImage *) imageWithPDFData:(NSData *)data atSize:(CGSize)size atPage:(NSUInteger)page;
+(UIImage *) imageWithPDFData:(NSData *)data atWidth:(CGFloat)width;
+(UIImage *) imageWithPDFData:(NSData *)data atWidth:(CGFloat)width atPage:(NSUInteger)page;
+(UIImage *) imageWithPDFData:(NSData *)data atHeight:(CGFloat)height;
+(UIImage *) imageWithPDFData:(NSData *)data atHeight:(CGFloat)height atPage:(NSUInteger)page;
+(UIImage *) imageWithPDFData:(NSData *)data fitSize:(CGSize)size;
+(UIImage *) imageWithPDFData:(NSData *)data fitSize:(CGSize)size atPage:(NSUInteger)page;
+(UIImage *) originalSizeImageWithPDFData:(NSData *)data;
+(UIImage *) originalSizeImageWithPDFURL:(NSURL *)URL atPage:(NSUInteger)page;
+(UIImage *) originalSizeImageWithPDFURL:(NSURL *)URL;
@end