AppDelegate.m 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // AppDelegate.m
  3. // PDFReader
  4. //
  5. // Copyright © 2014-2022 PDF Technologies, Inc. All Rights Reserved.
  6. //
  7. // The PDF Reader Sample applications are licensed with a modified BSD license.
  8. // Please see License for details. This notice may not be removed from this file.
  9. //
  10. #import "AppDelegate.h"
  11. #import <ComPDFKit/ComPDFKit.h>
  12. @interface AppDelegate ()
  13. @end
  14. @implementation AppDelegate
  15. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  16. // Override point for customization after application launch.
  17. /*
  18. // Set your license key here. ComPDFKit is commercial software.
  19. // Each ComPDFKit license is bound to a specific app bundle id.
  20. // Notice: This is a demo project, presenting completed ComPDFKit functions.
  21. // The functions might be different based on the license you have purchased.
  22. // Please check the functions you chose work fine in this demo project.
  23. // BOOL tIsFeatureLocked = ![[CPDFKit sharedInstance] allowsFeature:CPDFKitFeatureSecurityWatermark];
  24. */
  25. // [CPDFKit setLicenseKey:@"YOUR_LICENSE_KEY_GOES_HERE" secret:@"YOUR_LICENSE_SECRET_GOES_HERE"];
  26. // com.compdfkit.pdfviewer
  27. [CPDFKit setLicenseKey:@"onNEoKiO7LoeaqbuxmqgdjgppXBMO/rw6wZFJJeJx9GM1kVzFIixr4J9NBUshFyyT3OUgE6PYL31GcaOiPidmfqwCQhMuSQlvs07DjzQLlmjY2PaBHwG4QvHneyElXU8Jp6AgBVVPL9Qb9bGfBIsdqbBwX8flHuHQQ5bEMKOPFw=" secret:@"mG0c3O3Mzeu5dkZJW3gpql8+jBucojBtBSjI3YJz2gB9ms/F1zY6gZ1RBu8mNJH8idoLDJapQzJJ1HR8a/MFd/uuwijAWJZJuvsTcRTp1Sdhrp9sGpqfp0B228KI+IMTu4aGVjtYuk+Uxs/kosIBwyVLBY93oKLBB8UJg4t07605BGbaBKUlDopA0iGq1HSncUNNe38VRnoTm6ibgXyIG6+4UZPyBS1/6qLCcC9xQUtBaPhaWhE5XcAFbE1TZu+6KtsUUbXgEJiImZf6bVjCvA=="];
  28. NSString *tAnnotateAuther = CPDFKitShareConfig.annotationAuthor;
  29. NSLog(@"CPDFKit Annotation Author: \t %@", tAnnotateAuther);
  30. CPDFKitShareConfig.enableAnnotationNoRotate = YES;
  31. return YES;
  32. }
  33. - (void)applicationWillResignActive:(UIApplication *)application {
  34. // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
  35. // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
  36. }
  37. - (void)applicationDidEnterBackground:(UIApplication *)application {
  38. // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
  39. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
  40. }
  41. - (void)applicationWillEnterForeground:(UIApplication *)application {
  42. // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
  43. }
  44. - (void)applicationDidBecomeActive:(UIApplication *)application {
  45. // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
  46. }
  47. - (void)applicationWillTerminate:(UIApplication *)application {
  48. // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
  49. }
  50. @end