// // CPDFConverterFPTool.h // KdanAuto // // Created by 朱东勇 on 2023/5/9. // #import NS_ASSUME_NONNULL_BEGIN @protocol CPDFConverterFPToolDelegate @optional // Going to start the transformation - (void)FPPDFConverter:(id)converter didStartConversion:(NSError *)error; // Complete the conversion - (void)FPPDFConverter:(id)converter didEndConversion:(NSError *)error; // Page progress - (void)FPPDFConverter:(id)converter pageIndex:(NSUInteger)pageIndexA progress:(NSUInteger)progress; // Finish parsing a page - (void)FPPDFConverter:(id)converter convertPDFPageIndex:(NSUInteger)pdfPageIndexA writeWordPageIndex:(NSUInteger)wordPageIndexA finshedWordPageCount:(NSUInteger)wordPageCountA; // A page cannot be converted - (void)FPPDFConverter:(id)converter convertPDFPageIndex:(NSUInteger)pdfPageIndexA faildWithError:(NSError *)error; // The document will be saved to disk - (void)FPPDFConverter:(id)converter willSaveDoc:(NSError *)error; // Catch an anomaly - (void)FPPDFConverter:(id)converter catchException:(NSException *)exception; @end @interface CPDFConverterFPTool : NSObject + (id _Nullable)createConverterFP; + (void)setDelegate:(id _Nullable)delegate forConverterFP:(id _Nullable)converterFP; - (void)setDelegate:(id _Nullable)delegate; + (void)stopConvertsionIfNeed:(id _Nullable)converterFP; - (void)stopConvertsionIfNeed; + (void)convertPDFForConverterFP:(id _Nullable)converterFP path:(NSString *)pdfPathA pdfPassword:(NSString * _Nullable)pdfPasswordA pdfPageIndexs:(NSArray *)pdfPageIndexsA destDocType:(NSString *)destDocTypeA destDocPath:(NSString *)destDocPathA moreOptions:(NSDictionary*)moreOptionsA; - (void)convertPDFAtPath:(NSString *)pdfPathA pdfPassword:(NSString *)pdfPasswordA pdfPageIndexs:(NSArray *)pdfPageIndexsA destDocType:(NSString *)destDocTypeA destDocPath:(NSString *)destDocPathA moreOptions:(NSDictionary *)moreOptionsA; @end NS_ASSUME_NONNULL_END