//
//  PDFViewController.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 PDFViewController : UIViewController<UIDocumentInteractionControllerDelegate,MFMailComposeViewControllerDelegate,UIPrintInteractionControllerDelegate>
@property (strong, nonatomic) IBOutlet UIWebView *webView;
@property (strong, nonatomic) IBOutlet UIActivityIndicatorView *mum;
@property (strong,nonatomic) NSString* url;
@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) 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;
@property (strong,nonatomic) NSString* save_note;

@property (strong, nonatomic)  UIBarButtonItem *btnshare;
@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;
@end
