// // KMPosterPrintManager.h // PDF Reader Pro Edition // // Created by 丁林圭 on 2018/4/3. // #import #import typedef NS_OPTIONS(NSUInteger, kKMPDFPosterPrintDirection) { kKMPDFPosterPrintDirection_Portrait = 0 , kKMPDFPosterPrintDirection_Landscape, }; typedef NS_OPTIONS(NSUInteger, kKMPDFPosterCommentsForms) { kKMPDFPosterCommentsForms_Documents =0, kKMPDFPosterCommentsForms_DocumentMarkups , kKMPDFPosterCommentsForms_DocumentStamps, }; typedef NS_OPTIONS(NSUInteger, kKMPDFPosterSplitType) { kKMPDFPosterSplitType_PageSize =0, kKMPDFPosterSplitType_PageNumber, }; @interface KMPDFPosterPrint : NSObject @property (nonatomic, assign) kKMPDFPosterPrintDirection direction; @property (nonatomic, assign) CGFloat scale; @property (nonatomic, assign) CGFloat overlap; @property (nonatomic, assign) BOOL isLabel; @property (nonatomic, assign) BOOL isCut; @property (nonatomic,assign) BOOL isReversePage; @property (nonatomic, retain) NSArray * cropPages; @property (nonatomic, retain) NSString * labelString; @property (nonatomic, assign) CGSize splitSize;//选择裁剪大小 @property (nonatomic, assign) NSEdgeInsets edgeInsets;//裁剪区域周边大小 @property (nonatomic, assign) kKMPDFPosterCommentsForms commentsForms; @property (nonatomic, assign) kKMPDFPosterSplitType splitType; @property (nonatomic, assign) CGSize fullPageSize;//纸张大小 @property (nonatomic, assign) NSEdgeInsets fullPageEdgeInsets; @property (nonatomic, assign) BOOL isOriginalPageSize; @property (nonatomic, assign) NSInteger lineCount; //行个数 @property (nonatomic, assign) NSInteger columnCount; //列个数 @end @interface KMPosterPrintManager : NSObject typedef void(^postPrintCallback)(NSArray *horizontals,NSArray *verticals); + (KMPosterPrintManager *)defaultManager; - (void)savePath:(NSString *)path posterPrint:(KMPDFPosterPrint *)print completionHandler:(void (^)(BOOL success))complet; - (void)posterPrintPage:(PDFPage *)page posterPrint:(KMPDFPosterPrint *)properties completionHandler:(postPrintCallback)handler; @end