1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- //
- // BLParameterModel.h
- // Booklet
- //
- // Created by 蒋志鹏 on 2018/5/21.
- // Copyright © 2018 Booklet. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <Cocoa/Cocoa.h>
- //Booklet布局方式
- typedef NS_ENUM(NSUInteger, kBLLayoutStyle) {
- kBLLayoutStyle_left = 0,
- kBLLayoutStyle_right,
- kBLLayoutStyle_leftTall,
- kBLLayoutStyle_rightTall
- };
- //打印方式
- typedef NS_ENUM(NSUInteger, kBLPrintStyle) {
- kBLPrintStyle_FrontOnly = 0,
- kBLPrintStyle_BackOnly,
- kBLPrintStyle_BothSide
- };
- //距离单位
- typedef NS_ENUM(NSUInteger, kBookletPagesGapUnit) {
- kBookletPagesGapUnit_MM = 0,
- kBookletPagesGapUnit_CM,
- kBookletPagesGapUnit_IN,
- };
- //是否保留注释
- typedef NS_ENUM(NSUInteger, kBookletCommentForms) {
- kBookletCommentForms_DocumentOnly = 0,
- kBookletCommentForms_DocumentAndMarkups,
- kBookletCommentForms_DocumentAndStamps,
- };
- @interface KMBookletParameterModel : NSObject
- //page数组
- @property (nonatomic, retain) NSMutableArray *pageArray;
- //新page的页面大小
- @property (nonatomic, assign) CGSize pageSize;
- //页间距
- @property (nonatomic, assign) CGFloat gap;
- //保存路径
- @property (nonatomic, retain) NSString *savePath;
- //布局样式
- @property (nonatomic, assign) kBLLayoutStyle layoutStyle;
- //打印样式
- @property (nonatomic, assign) kBLPrintStyle printStyle;
- //是否自动调整
- @property (nonatomic, assign) BOOL autoRotatePage;
- //是否自动旋转
- @property (nonatomic, assign) BOOL reversePages;
- //sheet起点
- @property (nonatomic, assign) NSInteger sheetFromIndex;
- //sheet终点
- @property (nonatomic, assign) NSInteger sheetEndindex;
- //间距单位
- @property (nonatomic, assign) kBookletPagesGapUnit gapUnit;
- //批注选择(去除注释 ,保留所有注释,保留所有PDFAnnotationStamp类型注释)
- @property (nonatomic, assign) kBookletCommentForms commentForms;
- @end
|