CPDFHeaderFooterAddController.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 "CPDFModelData.h"
  12. #import "Masonry.h"
  13. NS_ASSUME_NONNULL_BEGIN
  14. typedef enum Location {
  15. kHeader = 0,
  16. kFooter,
  17. }Location;
  18. typedef enum Aligment {
  19. kLeft = 0,
  20. kCenter,
  21. kRinght,
  22. }Aligment;
  23. typedef struct Position {
  24. Location location;
  25. Aligment aligment;
  26. }Position;
  27. @interface CPDFHeaderFooterAddController : UIViewController
  28. - (void)cancelClick:(UIBarButtonItem *)btn;
  29. - (void)doneClick:(UIBarButtonItem *)btn;
  30. - (id)initWithIamge:(UIImage *)image WithSize:(CGSize)size WithDocument:(CPDFDocument *)docment WithView:(CPDFView *) pdfView;
  31. - (void)changeLocation:(UISegmentedControl *)sender;
  32. - (void)changeAligbment:(UISegmentedControl *)sender;
  33. - (void)sliderChange:(UISlider *)slider;
  34. - (void)changeFontSize:(UITextField *)text;
  35. @property (nonatomic,assign) CGSize size;
  36. @property (nonatomic,strong) UIImage *image;
  37. @property (nonatomic,assign) Position position;
  38. @property (nonatomic,strong) CPDFHeaderFooterAddView *headerFooterview;
  39. @property (nonatomic,strong) UILabel *showLabel;
  40. @property (nonatomic,strong) CPDFModelData *modelData;
  41. @property (nonatomic,strong) CPDFDocument *document;
  42. @property (nonatomic,strong) CPDFHeaderFooter *headerFooter;
  43. @property (nonatomic,strong) CPDFView *pdfView;
  44. @property (nonatomic,strong) UIImageView *imageView;
  45. @end
  46. NS_ASSUME_NONNULL_END