// // HeaderFooterAlertViewController.h // PDFViewer // // Created by kdanmobile_2 on 2022/11/16. // #import #import #import #import "CPDFHeaderFooterAddView.h" #import "CPDFHeaderFooterModel.h" #import "CPDFHeaderFooterTextTableView.h" #import "CPDFPageFomatModel.h" #import "Masonry.h" NS_ASSUME_NONNULL_BEGIN typedef enum Location { kHeader = 0, kFooter, }Location; typedef enum Aligment { kLeft = 0, kCenter, kRinght, }Aligment; typedef struct Position { Location location; Aligment aligment; }Position; @interface CPDFHeaderFooterAddController : UIViewController - (void)cancelClick:(UIBarButtonItem *)btn; - (void)doneClick:(UIBarButtonItem *)btn; - (id)initWithIamge:(UIImage *)image WithSize:(CGSize)size WithDocument:(CPDFDocument *)docment WithView:(CPDFView *) pdfView; - (void)changeLocation:(UISegmentedControl *)sender; - (void)changeAligbment:(UISegmentedControl *)sender; - (void)sliderChange:(UISlider *)slider; - (void)changeFontSize:(UITextField *)text; - (void)changePageStart:(UITextField *)text; @property (nonatomic,assign) CGSize size; @property (nonatomic,strong) UIImage *image; @property (nonatomic,assign) Position position; @property (nonatomic,strong) CPDFHeaderFooterAddView *headerFooterview; @property (nonatomic,strong) UILabel *showLabel; @property (nonatomic,strong) CPDFHeaderFooterModel *modelData; @property (nonatomic,strong) CPDFDocument *document; @property (nonatomic,strong) CPDFHeaderFooter *headerFooter; @property (nonatomic,strong) CPDFView *pdfView; @property (nonatomic,strong) UIImageView *imageView; @property (nonatomic,strong) CPDFHeaderFooterTextTableView *pageFormat; @property (nonatomic,strong) NSMutableArray *dataArray; @end NS_ASSUME_NONNULL_END