DocumentPageViewController.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // DocumentPageViewController.h
  3. // AntsContract
  4. //
  5. // Created by Ray on 12/16/16.
  6. // Copyright © 2016 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(NSInteger, PDFEditAction) {
  10. PDFEditActionNew = 0,
  11. PDFEditActionModify = 1
  12. };
  13. @interface DocumentPageViewController : UIViewController <UIPageViewControllerDelegate , UIPageViewControllerDataSource>
  14. @property (weak, nonatomic) IBOutlet UIButton *left_button;
  15. @property (weak, nonatomic) IBOutlet UIButton *right_button;
  16. @property (strong, nonatomic) UIPageViewController *pageViewController;
  17. @property (strong, nonatomic) NSMutableDictionary * controlTemplate;
  18. @property size_t total_page;
  19. @property CGPDFDocumentRef document;
  20. @property (strong, nonatomic) NSMutableDictionary* signatureData;
  21. @property (assign, nonatomic) bool hide_control;
  22. @property (assign, nonatomic) bool no_save;
  23. @property (strong, nonatomic) NSString* pdfPath;//pdfName;
  24. @property (strong, nonatomic) NSString* templatePath;//templateName;
  25. @property (weak, nonatomic) IBOutlet UIBarButtonItem *ibSave;
  26. @property (strong, nonatomic) NSString* docment_id;
  27. @property long current_page;
  28. @property (nonatomic , copy) void (^OnSave)(NSString * file, NSString* subject );
  29. @property (assign) PDFEditAction action;
  30. @end