CPDFHeaderFooterAddController.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // HeaderFooterAlertViewController.h
  3. // PDFViewer
  4. //
  5. // Created by kdanmobile_2 on 2022/11/16.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import <ComPDFKit/CPDFHeaderFooter.h>
  9. #import <ComPDFKit/ComPDFKit.h>
  10. #import "CPDFHeaderFooterAddView.h"
  11. #import "CPDFHeaderFooterModel.h"
  12. #import "CPDFHeaderFooterTextTableView.h"
  13. #import "CPDFPageFomatModel.h"
  14. #import "Masonry.h"
  15. NS_ASSUME_NONNULL_BEGIN
  16. #define kFormat @"^[ ]+$"
  17. typedef enum CGLocation {
  18. kHeader = 0,
  19. kFooter,
  20. }CGLocation;
  21. typedef enum CGAligment {
  22. kLeft = 0,
  23. kCenter,
  24. kRinght,
  25. }CGAligment;
  26. typedef struct PositionRec {
  27. CGLocation location;
  28. CGAligment aligment;
  29. }PositionRec;
  30. @interface CPDFHeaderFooterAddController : UIViewController <UITableViewDelegate,UITableViewDataSource,UITextFieldDelegate>
  31. - (id)initWithIamge:(UIImage *)image WithSize:(CGSize)size;
  32. @property (nonatomic,assign) CGSize size;
  33. @property (nonatomic,strong) UIImage *image;
  34. @property (nonatomic,assign) PositionRec position;
  35. @property (nonatomic,strong) CPDFHeaderFooterAddView *headerFooterview;
  36. @property (nonatomic,strong) UILabel *showLabel;
  37. @property (nonatomic,strong) CPDFHeaderFooterModel *modelData;
  38. @property (nonatomic,strong) UIImageView *imageView;
  39. @property (nonatomic,strong) CPDFHeaderFooterTextTableView *pageFormat;
  40. @property (nonatomic,strong) NSMutableArray *dataArray;
  41. @end
  42. NS_ASSUME_NONNULL_END