ComPDFKitRN.mm 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Copyright © 2014-2025 PDF Technologies, Inc. All Rights Reserved.
  2. //
  3. // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  4. // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  5. // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
  6. // This notice may not be removed from this file.
  7. //
  8. #import <React/RCTBridgeModule.h>
  9. @interface RCT_EXTERN_MODULE(ComPDFKit, NSObject)
  10. RCT_EXTERN_METHOD(getVersionCode:(RCTPromiseResolveBlock)resolve
  11. withRejecter:(RCTPromiseRejectBlock)reject)
  12. RCT_EXTERN_METHOD(getSDKBuildTag:(RCTPromiseResolveBlock)resolve
  13. withRejecter:(RCTPromiseRejectBlock)reject)
  14. RCT_EXTERN_METHOD(init_:(NSString *)license
  15. withResolver:(RCTPromiseResolveBlock)resolve
  16. withRejecter:(RCTPromiseRejectBlock)reject)
  17. RCT_EXTERN_METHOD(initialize:(NSString *)androidOnlineLicense
  18. iosOnlineLicense:(NSString *)iosOnlineLicense
  19. withResolver:(RCTPromiseResolveBlock)resolve
  20. withRejecter:(RCTPromiseRejectBlock)reject)
  21. RCT_EXTERN_METHOD(openDocument:(NSURL *)document
  22. password:(NSString *)password
  23. configurationJson:(NSString *)configurationJson)
  24. RCT_EXTERN_METHOD(removeSignFileList:(RCTPromiseResolveBlock)resolve
  25. withRejecter:(RCTPromiseRejectBlock)reject)
  26. RCT_EXTERN_METHOD(pickFile:(RCTPromiseResolveBlock)resolve
  27. withRejecter:(RCTPromiseRejectBlock)reject)
  28. RCT_EXTERN_METHOD(setImportFontDir:(NSString *) fontDir
  29. addSysFont:(BOOL) addSysFont
  30. withResolver:(RCTPromiseResolveBlock)resolve
  31. withRejecter:(RCTPromiseRejectBlock)reject)
  32. + (BOOL)requiresMainQueueSetup
  33. {
  34. return NO;
  35. }
  36. @end