CPDFAddViewController.h 856 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // CPDFAddViewController.h
  3. // PDFViewer
  4. //
  5. // Created by kdanmobile_2 on 2022/12/7.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import "CPDFHeaderFooterModel.h"
  9. #import "CPDFHeadView.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. #define kFormat @"^[ ]+$"
  12. typedef enum CGLocation {
  13. kHeader = 0,
  14. kFooter,
  15. }CGLocation;
  16. typedef enum CGAligment {
  17. kLeft = 0,
  18. kCenter,
  19. kRinght,
  20. }CGAligment;
  21. typedef struct RecPosition {
  22. CGLocation location;
  23. CGAligment aligment;
  24. }RecPosition;
  25. @protocol CPDFModelDataDelegate <NSObject>
  26. @optional
  27. - (void)changeHeaderFooterModelData:(CPDFHeaderFooterModel *)modelData;
  28. - (void)changBatesModelData:(CPDFHeaderFooterModel *)modelData;
  29. @end
  30. @interface CPDFAddViewController : UIViewController
  31. - (id)initWithImage:(UIImage *)image;
  32. @property (nonatomic,weak) id<CPDFModelDataDelegate> delegate;
  33. @end
  34. NS_ASSUME_NONNULL_END