PDFAddViewController.h 1.0 KB

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 "PDFHeaderFooterModel.h"
  9. #import "PDFHeadFooterPreView.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. #define kFormat @"^[ ]+$"
  12. typedef NS_ENUM(NSInteger, PDFHeaderFooterLocation) {
  13. PDFHeaderFooterLocationHeader = 0,
  14. PDFHeaderFooterLocationFooter,
  15. };
  16. typedef NS_ENUM(NSInteger, PDFHeaderFooerAligment) {
  17. PDFHeaderFooerAligmentLeft = 0,
  18. PDFHeaderFooerAligmentCenter,
  19. PDFHeaderFooerAligmentRinght,
  20. };
  21. typedef struct PDFHeaderFooterPosition {
  22. PDFHeaderFooterLocation location;
  23. PDFHeaderFooerAligment aligment;
  24. }PDFHeaderFooterPosition;
  25. @protocol PDFModelDataDelegate <NSObject>
  26. @optional
  27. - (void)PDFViewPerformChangeHeaderFooter:(PDFHeaderFooterModel *)modelData;
  28. - (void)PDFViewPerformChangBates:(PDFHeaderFooterModel *)modelData;
  29. @end
  30. @interface PDFAddViewController : UIViewController
  31. - (id)initWithImage:(UIImage *)image;
  32. @property (nonatomic, weak) id<PDFModelDataDelegate> delegate;
  33. @end
  34. NS_ASSUME_NONNULL_END