12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- //
- // AppDelegate.m
- // PDFReader
- //
- // Copyright © 2014-2022 PDF Technologies, Inc. All Rights Reserved.
- //
- // The PDF Reader Sample applications are licensed with a modified BSD license.
- // Please see License for details. This notice may not be removed from this file.
- //
- #import "AppDelegate.h"
- #import <ComPDFKit/ComPDFKit.h>
- @interface AppDelegate ()
- @end
- @implementation AppDelegate
- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
- // Override point for customization after application launch.
- /*
- // Set your license key here. ComPDFKit is commercial software.
- // Each ComPDFKit license is bound to a specific app bundle id.
-
- // Notice: This is a demo project, presenting completed ComPDFKit functions.
- // The functions might be different based on the license you have purchased.
- // Please check the functions you chose work fine in this demo project.
-
- // BOOL tIsFeatureLocked = ![[CPDFKit sharedInstance] allowsFeature:CPDFKitFeatureSecurityWatermark];
- */
- // [CPDFKit setLicenseKey:@"YOUR_LICENSE_KEY_GOES_HERE" secret:@"YOUR_LICENSE_SECRET_GOES_HERE"];
-
- // com.compdfkit.pdfviewer
- [CPDFKit setLicenseKey:@"onNEoKiO7LoeaqbuxmqgdjgppXBMO/rw6wZFJJeJx9GM1kVzFIixr4J9NBUshFyyT3OUgE6PYL31GcaOiPidmfqwCQhMuSQlvs07DjzQLlmjY2PaBHwG4QvHneyElXU8Jp6AgBVVPL9Qb9bGfBIsdqbBwX8flHuHQQ5bEMKOPFw=" secret:@"mG0c3O3Mzeu5dkZJW3gpql8+jBucojBtBSjI3YJz2gB9ms/F1zY6gZ1RBu8mNJH8idoLDJapQzJJ1HR8a/MFd/uuwijAWJZJuvsTcRTp1Sdhrp9sGpqfp0B228KI+IMTu4aGVjtYuk+Uxs/kosIBwyVLBY93oKLBB8UJg4t07605BGbaBKUlDopA0iGq1HSncUNNe38VRnoTm6ibgXyIG6+4UZPyBS1/6qLCcC9xQUtBaPhaWhE5XcAFbE1TZu+6KtsUUbXgEJiImZf6bVjCvA=="];
-
- NSString *tAnnotateAuther = CPDFKitShareConfig.annotationAuthor;
- NSLog(@"CPDFKit Annotation Author: \t %@", tAnnotateAuther);
-
- CPDFKitShareConfig.enableAnnotationNoRotate = YES;
-
- return YES;
- }
- - (void)applicationWillResignActive:(UIApplication *)application {
- // 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.
- // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
- }
- - (void)applicationDidEnterBackground:(UIApplication *)application {
- // 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.
- // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
- }
- - (void)applicationWillEnterForeground:(UIApplication *)application {
- // 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.
- }
- - (void)applicationDidBecomeActive:(UIApplication *)application {
- // 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.
- }
- - (void)applicationWillTerminate:(UIApplication *)application {
- // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
- }
- @end
|