KMBookletParameterModel.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //
  2. // BLParameterModel.h
  3. // Booklet
  4. //
  5. // Created by 蒋志鹏 on 2018/5/21.
  6. // Copyright © 2018 Booklet. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <Cocoa/Cocoa.h>
  10. //Booklet布局方式
  11. typedef NS_ENUM(NSUInteger, kBLLayoutStyle) {
  12. kBLLayoutStyle_left = 0,
  13. kBLLayoutStyle_right,
  14. kBLLayoutStyle_leftTall,
  15. kBLLayoutStyle_rightTall
  16. };
  17. //打印方式
  18. typedef NS_ENUM(NSUInteger, kBLPrintStyle) {
  19. kBLPrintStyle_FrontOnly = 0,
  20. kBLPrintStyle_BackOnly,
  21. kBLPrintStyle_BothSide
  22. };
  23. //距离单位
  24. typedef NS_ENUM(NSUInteger, kBookletPagesGapUnit) {
  25. kBookletPagesGapUnit_MM = 0,
  26. kBookletPagesGapUnit_CM,
  27. kBookletPagesGapUnit_IN,
  28. };
  29. //是否保留注释
  30. typedef NS_ENUM(NSUInteger, kBookletCommentForms) {
  31. kBookletCommentForms_DocumentOnly = 0,
  32. kBookletCommentForms_DocumentAndMarkups,
  33. kBookletCommentForms_DocumentAndStamps,
  34. };
  35. @interface KMBookletParameterModel : NSObject
  36. //page数组
  37. @property (nonatomic, retain) NSMutableArray *pageArray;
  38. //新page的页面大小
  39. @property (nonatomic, assign) CGSize pageSize;
  40. //页间距
  41. @property (nonatomic, assign) CGFloat gap;
  42. //保存路径
  43. @property (nonatomic, retain) NSString *savePath;
  44. //布局样式
  45. @property (nonatomic, assign) kBLLayoutStyle layoutStyle;
  46. //打印样式
  47. @property (nonatomic, assign) kBLPrintStyle printStyle;
  48. //是否自动调整
  49. @property (nonatomic, assign) BOOL autoRotatePage;
  50. //是否自动旋转
  51. @property (nonatomic, assign) BOOL reversePages;
  52. //sheet起点
  53. @property (nonatomic, assign) NSInteger sheetFromIndex;
  54. //sheet终点
  55. @property (nonatomic, assign) NSInteger sheetEndindex;
  56. //间距单位
  57. @property (nonatomic, assign) kBookletPagesGapUnit gapUnit;
  58. //批注选择(去除注释 ,保留所有注释,保留所有PDFAnnotationStamp类型注释)
  59. @property (nonatomic, assign) kBookletCommentForms commentForms;
  60. @end