RAPDFViewController.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // RAPDFViewController.h
  3. // RedAnt ERP Mobile
  4. //
  5. // Created by Ray on 14-8-7.
  6. // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <MessageUI/MessageUI.h>
  10. @interface RAPDFViewController : UIViewController<UIDocumentInteractionControllerDelegate,MFMailComposeViewControllerDelegate,UIPrintInteractionControllerDelegate>
  11. @property (strong, nonatomic) IBOutlet UIWebView *webView;
  12. @property (strong, nonatomic) IBOutlet UIActivityIndicatorView *mum;
  13. @property (strong,nonatomic) NSString* url; //pdf 路径,可以是网络路径或文件路径
  14. @property (strong,nonatomic) NSString* filename; // 保存为文件时指定的名称
  15. @property (strong,nonatomic) NSData* content;
  16. @property bool isLocalfile;
  17. @property (strong, nonatomic) IBOutlet UIBarButtonItem *BB_action;
  18. @property (strong,nonatomic) UIDocumentInteractionController* fileInteractionController;
  19. @property (nonatomic , copy) void (^onLoadSuccess)(NSString* url );
  20. @property (nonatomic,copy) NSString *cachePath; //指定的保存路径
  21. @property (nonatomic , copy) void (^onSavePDF)(NSString* name,NSString* file );
  22. @property (strong,nonatomic) NSString* mail_subject;
  23. @property (strong,nonatomic) NSString* mail_content;
  24. @property (strong,nonatomic) NSArray* mail_to;
  25. @property (strong,nonatomic) NSString* save_name; // save 按钮默认保存名
  26. @property (strong,nonatomic) NSString* save_note;
  27. @property (strong, nonatomic) UIBarButtonItem *btnshare;
  28. @property (strong, nonatomic) UIBarButtonItem *btnPrint;
  29. @property (strong, nonatomic) UIBarButtonItem *btnemail;
  30. @property (strong, nonatomic) UIBarButtonItem *btnsave;
  31. @property bool autoPrint;
  32. @property bool hidenavi;
  33. @property bool canSave;
  34. @property bool defaultStyle;
  35. @property (strong,nonatomic) NSString* attachment_name; //email 按钮附件名称(已废弃)
  36. @end