KMDocumentAIViewController.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // KMDocumentAIViewController.h
  3. // PDF Master
  4. //
  5. // Created by 丁林圭 on 2023/1/30.
  6. //
  7. #import <Cocoa/Cocoa.h>
  8. #import <ComPDFKit/ComPDFKit.h>
  9. //#import <ComDocumentAIKit/ComDocumentAIKit.h>
  10. #import "KMDocumentAIPDFView.h"
  11. @class KMDocumentAIViewController;
  12. @protocol KMDocumentAIViewDelegate <NSObject>
  13. @optional
  14. - (void)documentAIViewController:(KMDocumentAIViewController *)vc currentPageDidChanged:(CPDFView *)pdfView;
  15. - (void)documentAIViewController:(KMDocumentAIViewController *)vc scaleDidChanged:(CPDFView *)pdfView;
  16. @end
  17. @interface KMDocumentAIViewController : NSViewController
  18. @property(nonatomic,readonly)KMDocumentAIPDFView *pdfPreView;
  19. @property (nonatomic,assign) id<KMDocumentAIViewDelegate> documentAIViewDelegate;
  20. - (instancetype)initWithPDFView:(CPDFView *)pdfView;
  21. - (void)enteredIncreaseAllPage;
  22. - (void)resetIncreaseAllPage;
  23. // @pageString, Such as "0,3,5-7".
  24. //- (void)recognitionPageString:(NSString *)pageString withModelType:(COCRModelType)modelType;
  25. //- (void)recognitionPartModelWithModelType:(COCRModelType)modelType;
  26. - (void)creatRecognitionDocument;
  27. // YES 进入OCR扫描
  28. - (void)updateToolState:(BOOL)isOCR;
  29. @end