// // KMPDFMorePagePrintManager.h // PDF Reader Pro Edition // // Created by 丁林圭 on 2018/5/17. // #import #import typedef NS_OPTIONS(NSUInteger, kKMPDFMultiplePageOrder) { kKMPDFMultiplePageOrder_Transverse = 0 , kKMPDFMultiplePageOrder_TransverseAntitone, kKMPDFMultiplePageOrder_Longitudinal, kKMPDFMultiplePageOrder_LongitudinalAntitone, }; typedef NS_OPTIONS(NSUInteger, kKMPDFMultiplePageDirection) { kKMPDFMultiplePageDirection_Portrait = 0 , kKMPDFMultiplePageDirection_Landscape, }; typedef NS_OPTIONS(NSUInteger, kKMPDFCommentsForms) { kKMPDFCommentsForms_Documents =0, kKMPDFCommentsForms_DocumentMarkups , kKMPDFCommentsForms_DocumentStamps, }; @interface KMEachPageProperties : NSObject @property (nonatomic,assign) NSInteger rowCount; @property (nonatomic,assign) NSInteger columnCout; @property (nonatomic, assign) kKMPDFMultiplePageOrder order;//页面顺序 @property (nonatomic, assign) kKMPDFCommentsForms commentsForms;//页面顺序 @property (nonatomic,assign) BOOL isAutoRotate; @property (nonatomic,assign) BOOL isHasBorder; @property (nonatomic,assign) BOOL isReversePage; @property (nonatomic,assign) kKMPDFMultiplePageDirection direction; @property (nonatomic,assign) CGSize pageSize; @property (nonatomic, assign) NSEdgeInsets edgeInsets;//裁剪区域周边大小 @property (nonatomic, assign) CGFloat rowSpace;//行间距 @property (nonatomic, assign) CGFloat columnSpace;//列间距 @end @interface KMPDFMultipleManager : NSObject + (KMPDFMultipleManager *)defaultManager; - (void)drawPageToContext:(CGContextRef)context eachPages:(NSArray *)pages multipleOption:(KMEachPageProperties *)properties; - (void)savePDFDocumentPath:(NSString *)path drawPages:(NSArray *)pages multipleOption:(KMEachPageProperties *)properties completionHandler:(void (^)(BOOL isSuccessfully))handler; @end