| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // RAPDFViewController.h
- // RedAnt ERP Mobile
- //
- // Created by Ray on 14-8-7.
- // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import <MessageUI/MessageUI.h>
- @interface RAPDFViewController : UIViewController<UIDocumentInteractionControllerDelegate,MFMailComposeViewControllerDelegate,UIPrintInteractionControllerDelegate>
- @property (strong, nonatomic) IBOutlet UIWebView *webView;
- @property (strong, nonatomic) IBOutlet UIActivityIndicatorView *mum;
- @property (strong,nonatomic) NSString* url; //pdf 路径,可以是网络路径或文件路径
- @property (strong,nonatomic) NSString* filename; // 保存为文件时指定的名称
- @property (strong,nonatomic) NSData* content;
- @property bool isLocalfile;
- @property (strong, nonatomic) IBOutlet UIBarButtonItem *BB_action;
- @property (strong,nonatomic) UIDocumentInteractionController* fileInteractionController;
- @property (nonatomic , copy) void (^onLoadSuccess)(NSString* url );
- @property (nonatomic,copy) NSString *cachePath; //指定的保存路径
- @property (nonatomic , copy) void (^onSavePDF)(NSString* name,NSString* file );
- @property (strong,nonatomic) NSString* mail_subject;
- @property (strong,nonatomic) NSString* mail_content;
- @property (strong,nonatomic) NSArray* mail_to;
- @property (strong,nonatomic) NSString* save_name; // save 按钮默认保存名
- @property (strong,nonatomic) NSString* save_note;
- @property (strong, nonatomic) UIBarButtonItem *btnshare;
- @property (strong, nonatomic) UIBarButtonItem *btnPrint;
- @property (strong, nonatomic) UIBarButtonItem *btnemail;
- @property (strong, nonatomic) UIBarButtonItem *btnsave;
- @property bool autoPrint;
- @property bool hidenavi;
- @property bool canSave;
- @property bool defaultStyle;
- @property (strong,nonatomic) NSString* attachment_name; //email 按钮附件名称(已废弃)
- @end
|