// // KMDocumentAIViewController.h // PDF Master // // Created by 丁林圭 on 2023/1/30. // #import #import //#import #import "KMDocumentAIPDFView.h" @class KMDocumentAIViewController; @protocol KMDocumentAIViewDelegate @optional - (void)documentAIViewController:(KMDocumentAIViewController *)vc currentPageDidChanged:(CPDFView *)pdfView; - (void)documentAIViewController:(KMDocumentAIViewController *)vc scaleDidChanged:(CPDFView *)pdfView; @end @interface KMDocumentAIViewController : NSViewController @property(nonatomic,readonly)KMDocumentAIPDFView *pdfPreView; @property (nonatomic,assign) id documentAIViewDelegate; - (instancetype)initWithPDFView:(CPDFView *)pdfView; - (void)enteredIncreaseAllPage; - (void)resetIncreaseAllPage; // @pageString, Such as "0,3,5-7". //- (void)recognitionPageString:(NSString *)pageString withModelType:(COCRModelType)modelType; //- (void)recognitionPartModelWithModelType:(COCRModelType)modelType; - (void)creatRecognitionDocument; // YES 进入OCR扫描 - (void)updateToolState:(BOOL)isOCR; @end