forked from akisute/iPhonePDF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPDFService.h
57 lines (38 loc) · 1.04 KB
/
PDFService.h
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
//
// PDFService.h
// PDF
//
// Created by Masashi Ono on 09/10/25.
// Copyright (c) 2009, Masashi Ono
// All rights reserved.
//
#import <Foundation/Foundation.h>
#import "hpdf.h"
@class PDFService;
#pragma mark -
#pragma mark PDFServiceDelegate
@protocol PDFServiceDelegate
- (void)service:(PDFService *)service
didFailedCreatingPDFFile:(NSString *)filePath
errorNo:(HPDF_STATUS)errorNo
detailNo:(HPDF_STATUS)detailNo;
@end
#pragma mark -
#pragma mark PDFService
@interface PDFService : NSObject {
id <PDFServiceDelegate> delegate;
}
+ (PDFService *)instance;
- (void)createPDFFile:(NSString *)filePath;
@property (nonatomic, assign) id<PDFServiceDelegate> delegate;
@end
#pragma mark -
#pragma mark C functions and structures
typedef struct _PDFService_userData {
HPDF_Doc pdf;
PDFService *service;
NSString *filePath;
} PDFService_userData;
void PDFService_errorHandler(HPDF_STATUS error_no,
HPDF_STATUS detail_no,
void *user_data);