1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // KMDocumentAIViewController.h
- // PDF Master
- //
- // Created by 丁林圭 on 2023/1/30.
- //
- #import <Cocoa/Cocoa.h>
- #import <ComPDFKit/ComPDFKit.h>
- //#import <ComDocumentAIKit/ComDocumentAIKit.h>
- #import "KMDocumentAIPDFView.h"
- @class KMDocumentAIViewController;
- @protocol KMDocumentAIViewDelegate <NSObject>
- @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<KMDocumentAIViewDelegate> 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
|