Kaynağa Gözat

PDFViewer(iOS) - 初始化编辑项目

chenyu 1 yıl önce
ebeveyn
işleme
2f8e7be547

+ 1 - 0
.gitignore

@@ -1 +1,2 @@
 *.xcuserstate
+*.xcuserdatad

+ 2 - 2
Annotation-Ctrl-Demo/Annotation-Ctrl-Demo.xcodeproj/project.pbxproj

@@ -48,8 +48,8 @@
 		C9AF185029F267DD00EC4979 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
 		C9AF185229F267DD00EC4979 /* SceneDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SceneDelegate.h; sourceTree = "<group>"; };
 		C9AF185329F267DD00EC4979 /* SceneDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SceneDelegate.m; sourceTree = "<group>"; };
-		C9AF185529F267DD00EC4979 /* CPDFViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CPDFViewController.h; sourceTree = "<group>"; };
-		C9AF185629F267DD00EC4979 /* CPDFViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CPDFViewController.m; sourceTree = "<group>"; };
+		C9AF185529F267DD00EC4979 /* CPDFViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = CPDFViewController.h; path = "../../Edit-Ctrl-Demo/Edit-Ctrl-Demo/CPDFViewController.h"; sourceTree = "<group>"; };
+		C9AF185629F267DD00EC4979 /* CPDFViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = CPDFViewController.m; path = "../../Edit-Ctrl-Demo/Edit-Ctrl-Demo/CPDFViewController.m"; sourceTree = "<group>"; };
 		C9AF185929F267DD00EC4979 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
 		C9AF185B29F267E000EC4979 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
 		C9AF185E29F267E000EC4979 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };

+ 457 - 0
Edit-Ctrl-Demo/Edit-Ctrl-Demo.xcodeproj/project.pbxproj

@@ -0,0 +1,457 @@
+// !$*UTF8*$!
+{
+	archiveVersion = 1;
+	classes = {
+	};
+	objectVersion = 56;
+	objects = {
+
+/* Begin PBXBuildFile section */
+		4F17C06629F4FBFD00445550 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F17C06529F4FBFD00445550 /* AppDelegate.m */; };
+		4F17C06929F4FBFD00445550 /* SceneDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F17C06829F4FBFD00445550 /* SceneDelegate.m */; };
+		4F17C06F29F4FBFD00445550 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4F17C06D29F4FBFD00445550 /* Main.storyboard */; };
+		4F17C07129F4FBFF00445550 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4F17C07029F4FBFF00445550 /* Assets.xcassets */; };
+		4F17C07429F4FBFF00445550 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4F17C07229F4FBFF00445550 /* LaunchScreen.storyboard */; };
+		4F17C07729F4FBFF00445550 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F17C07629F4FBFF00445550 /* main.m */; };
+		4F17C07F29F4FE1700445550 /* CPDFViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F17C07D29F4FE1700445550 /* CPDFViewController.m */; };
+		4F17C08D29F4FEE800445550 /* SDKLicense.xml in Resources */ = {isa = PBXBuildFile; fileRef = 4F17C08329F4FEE800445550 /* SDKLicense.xml */; };
+		4F17C08E29F4FEE800445550 /* XPDXMLElement.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F17C08429F4FEE800445550 /* XPDXMLElement.m */; };
+		4F17C08F29F4FEE800445550 /* XMLParseManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F17C08529F4FEE800445550 /* XMLParseManager.m */; };
+		4F17C09529F4FEEF00445550 /* ComPDFKit.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4F17C08C29F4FEE800445550 /* ComPDFKit.xcframework */; };
+		4F17C09629F4FEEF00445550 /* ComPDFKit.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 4F17C08C29F4FEE800445550 /* ComPDFKit.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
+		4F17C09A29F4FFF500445550 /* compdfkit_tools.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4F17C09929F4FFF500445550 /* compdfkit_tools.framework */; };
+		4F17C09B29F4FFF500445550 /* compdfkit_tools.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 4F17C09929F4FFF500445550 /* compdfkit_tools.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
+		4F17C0A229F5079500445550 /* Form_Widgets_Test.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 4F17C09E29F5079500445550 /* Form_Widgets_Test.pdf */; };
+		4F17C0A329F5079500445550 /* PDF32000_2008.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 4F17C09F29F5079500445550 /* PDF32000_2008.pdf */; };
+		4F17C0A529F5079500445550 /* Quick Start Guide.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 4F17C0A129F5079500445550 /* Quick Start Guide.pdf */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+		4F17C09729F4FEEF00445550 /* Embed Frameworks */ = {
+			isa = PBXCopyFilesBuildPhase;
+			buildActionMask = 2147483647;
+			dstPath = "";
+			dstSubfolderSpec = 10;
+			files = (
+				4F17C09B29F4FFF500445550 /* compdfkit_tools.framework in Embed Frameworks */,
+				4F17C09629F4FEEF00445550 /* ComPDFKit.xcframework in Embed Frameworks */,
+			);
+			name = "Embed Frameworks";
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+		4F17C06129F4FBFD00445550 /* Edit-Ctrl-Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Edit-Ctrl-Demo.app"; sourceTree = BUILT_PRODUCTS_DIR; };
+		4F17C06429F4FBFD00445550 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
+		4F17C06529F4FBFD00445550 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
+		4F17C06729F4FBFD00445550 /* SceneDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SceneDelegate.h; sourceTree = "<group>"; };
+		4F17C06829F4FBFD00445550 /* SceneDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SceneDelegate.m; sourceTree = "<group>"; };
+		4F17C06E29F4FBFD00445550 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
+		4F17C07029F4FBFF00445550 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+		4F17C07329F4FBFF00445550 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
+		4F17C07529F4FBFF00445550 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+		4F17C07629F4FBFF00445550 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+		4F17C07D29F4FE1700445550 /* CPDFViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CPDFViewController.m; sourceTree = "<group>"; };
+		4F17C07E29F4FE1700445550 /* CPDFViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CPDFViewController.h; sourceTree = "<group>"; };
+		4F17C08129F4FEE800445550 /* XPDXMLElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XPDXMLElement.h; sourceTree = "<group>"; };
+		4F17C08229F4FEE800445550 /* XMLParseManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XMLParseManager.h; sourceTree = "<group>"; };
+		4F17C08329F4FEE800445550 /* SDKLicense.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = SDKLicense.xml; sourceTree = "<group>"; };
+		4F17C08429F4FEE800445550 /* XPDXMLElement.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XPDXMLElement.m; sourceTree = "<group>"; };
+		4F17C08529F4FEE800445550 /* XMLParseManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XMLParseManager.m; sourceTree = "<group>"; };
+		4F17C08C29F4FEE800445550 /* ComPDFKit.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = ComPDFKit.xcframework; sourceTree = "<group>"; };
+		4F17C09929F4FFF500445550 /* compdfkit_tools.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = compdfkit_tools.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+		4F17C09E29F5079500445550 /* Form_Widgets_Test.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = Form_Widgets_Test.pdf; sourceTree = "<group>"; };
+		4F17C09F29F5079500445550 /* PDF32000_2008.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = PDF32000_2008.pdf; sourceTree = "<group>"; };
+		4F17C0A129F5079500445550 /* Quick Start Guide.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = "Quick Start Guide.pdf"; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+		4F17C05E29F4FBFD00445550 /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				4F17C09A29F4FFF500445550 /* compdfkit_tools.framework in Frameworks */,
+				4F17C09529F4FEEF00445550 /* ComPDFKit.xcframework in Frameworks */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+		4F17C05829F4FBFD00445550 = {
+			isa = PBXGroup;
+			children = (
+				4F17C06329F4FBFD00445550 /* Edit-Ctrl-Demo */,
+				4F17C06229F4FBFD00445550 /* Products */,
+				4F17C09829F4FFF500445550 /* Frameworks */,
+			);
+			sourceTree = "<group>";
+		};
+		4F17C06229F4FBFD00445550 /* Products */ = {
+			isa = PBXGroup;
+			children = (
+				4F17C06129F4FBFD00445550 /* Edit-Ctrl-Demo.app */,
+			);
+			name = Products;
+			sourceTree = "<group>";
+		};
+		4F17C06329F4FBFD00445550 /* Edit-Ctrl-Demo */ = {
+			isa = PBXGroup;
+			children = (
+				4F17C09D29F5079500445550 /* TestFile */,
+				4F17C08B29F4FEE800445550 /* Lib */,
+				4F17C08029F4FEE800445550 /* SDKLicense */,
+				4F17C06429F4FBFD00445550 /* AppDelegate.h */,
+				4F17C06529F4FBFD00445550 /* AppDelegate.m */,
+				4F17C06729F4FBFD00445550 /* SceneDelegate.h */,
+				4F17C06829F4FBFD00445550 /* SceneDelegate.m */,
+				4F17C07E29F4FE1700445550 /* CPDFViewController.h */,
+				4F17C07D29F4FE1700445550 /* CPDFViewController.m */,
+				4F17C06D29F4FBFD00445550 /* Main.storyboard */,
+				4F17C07029F4FBFF00445550 /* Assets.xcassets */,
+				4F17C07229F4FBFF00445550 /* LaunchScreen.storyboard */,
+				4F17C07529F4FBFF00445550 /* Info.plist */,
+				4F17C07629F4FBFF00445550 /* main.m */,
+			);
+			path = "Edit-Ctrl-Demo";
+			sourceTree = "<group>";
+		};
+		4F17C08029F4FEE800445550 /* SDKLicense */ = {
+			isa = PBXGroup;
+			children = (
+				4F17C08129F4FEE800445550 /* XPDXMLElement.h */,
+				4F17C08229F4FEE800445550 /* XMLParseManager.h */,
+				4F17C08329F4FEE800445550 /* SDKLicense.xml */,
+				4F17C08429F4FEE800445550 /* XPDXMLElement.m */,
+				4F17C08529F4FEE800445550 /* XMLParseManager.m */,
+			);
+			name = SDKLicense;
+			path = ../../SDKLicense;
+			sourceTree = "<group>";
+		};
+		4F17C08B29F4FEE800445550 /* Lib */ = {
+			isa = PBXGroup;
+			children = (
+				4F17C08C29F4FEE800445550 /* ComPDFKit.xcframework */,
+			);
+			name = Lib;
+			path = ../../Lib;
+			sourceTree = "<group>";
+		};
+		4F17C09829F4FFF500445550 /* Frameworks */ = {
+			isa = PBXGroup;
+			children = (
+				4F17C09929F4FFF500445550 /* compdfkit_tools.framework */,
+			);
+			name = Frameworks;
+			sourceTree = "<group>";
+		};
+		4F17C09D29F5079500445550 /* TestFile */ = {
+			isa = PBXGroup;
+			children = (
+				4F17C09E29F5079500445550 /* Form_Widgets_Test.pdf */,
+				4F17C09F29F5079500445550 /* PDF32000_2008.pdf */,
+				4F17C0A129F5079500445550 /* Quick Start Guide.pdf */,
+			);
+			name = TestFile;
+			path = ../../TestFile;
+			sourceTree = "<group>";
+		};
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+		4F17C06029F4FBFD00445550 /* Edit-Ctrl-Demo */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = 4F17C07A29F4FBFF00445550 /* Build configuration list for PBXNativeTarget "Edit-Ctrl-Demo" */;
+			buildPhases = (
+				4F17C05D29F4FBFD00445550 /* Sources */,
+				4F17C05E29F4FBFD00445550 /* Frameworks */,
+				4F17C05F29F4FBFD00445550 /* Resources */,
+				4F17C09729F4FEEF00445550 /* Embed Frameworks */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+			);
+			name = "Edit-Ctrl-Demo";
+			productName = "Edit-Ctrl-Demo";
+			productReference = 4F17C06129F4FBFD00445550 /* Edit-Ctrl-Demo.app */;
+			productType = "com.apple.product-type.application";
+		};
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+		4F17C05929F4FBFD00445550 /* Project object */ = {
+			isa = PBXProject;
+			attributes = {
+				BuildIndependentTargetsInParallel = 1;
+				LastUpgradeCheck = 1420;
+				TargetAttributes = {
+					4F17C06029F4FBFD00445550 = {
+						CreatedOnToolsVersion = 14.2;
+					};
+				};
+			};
+			buildConfigurationList = 4F17C05C29F4FBFD00445550 /* Build configuration list for PBXProject "Edit-Ctrl-Demo" */;
+			compatibilityVersion = "Xcode 14.0";
+			developmentRegion = en;
+			hasScannedForEncodings = 0;
+			knownRegions = (
+				en,
+				Base,
+			);
+			mainGroup = 4F17C05829F4FBFD00445550;
+			productRefGroup = 4F17C06229F4FBFD00445550 /* Products */;
+			projectDirPath = "";
+			projectRoot = "";
+			targets = (
+				4F17C06029F4FBFD00445550 /* Edit-Ctrl-Demo */,
+			);
+		};
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+		4F17C05F29F4FBFD00445550 /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				4F17C0A229F5079500445550 /* Form_Widgets_Test.pdf in Resources */,
+				4F17C07429F4FBFF00445550 /* LaunchScreen.storyboard in Resources */,
+				4F17C07129F4FBFF00445550 /* Assets.xcassets in Resources */,
+				4F17C08D29F4FEE800445550 /* SDKLicense.xml in Resources */,
+				4F17C06F29F4FBFD00445550 /* Main.storyboard in Resources */,
+				4F17C0A529F5079500445550 /* Quick Start Guide.pdf in Resources */,
+				4F17C0A329F5079500445550 /* PDF32000_2008.pdf in Resources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+		4F17C05D29F4FBFD00445550 /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				4F17C06629F4FBFD00445550 /* AppDelegate.m in Sources */,
+				4F17C07F29F4FE1700445550 /* CPDFViewController.m in Sources */,
+				4F17C08F29F4FEE800445550 /* XMLParseManager.m in Sources */,
+				4F17C08E29F4FEE800445550 /* XPDXMLElement.m in Sources */,
+				4F17C07729F4FBFF00445550 /* main.m in Sources */,
+				4F17C06929F4FBFD00445550 /* SceneDelegate.m in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+		4F17C06D29F4FBFD00445550 /* Main.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				4F17C06E29F4FBFD00445550 /* Base */,
+			);
+			name = Main.storyboard;
+			sourceTree = "<group>";
+		};
+		4F17C07229F4FBFF00445550 /* LaunchScreen.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				4F17C07329F4FBFF00445550 /* Base */,
+			);
+			name = LaunchScreen.storyboard;
+			sourceTree = "<group>";
+		};
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+		4F17C07829F4FBFF00445550 /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_ENABLE_OBJC_WEAK = YES;
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_COMMA = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
+				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = dwarf;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				ENABLE_TESTABILITY = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu11;
+				GCC_DYNAMIC_NO_PIC = NO;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_OPTIMIZATION_LEVEL = 0;
+				GCC_PREPROCESSOR_DEFINITIONS = (
+					"DEBUG=1",
+					"$(inherited)",
+				);
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				IPHONEOS_DEPLOYMENT_TARGET = 16.2;
+				MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+				MTL_FAST_MATH = YES;
+				ONLY_ACTIVE_ARCH = YES;
+				SDKROOT = iphoneos;
+			};
+			name = Debug;
+		};
+		4F17C07929F4FBFF00445550 /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_ENABLE_OBJC_WEAK = YES;
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_COMMA = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
+				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+				ENABLE_NS_ASSERTIONS = NO;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu11;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				IPHONEOS_DEPLOYMENT_TARGET = 16.2;
+				MTL_ENABLE_DEBUG_INFO = NO;
+				MTL_FAST_MATH = YES;
+				SDKROOT = iphoneos;
+				VALIDATE_PRODUCT = YES;
+			};
+			name = Release;
+		};
+		4F17C07B29F4FBFF00445550 /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+				CODE_SIGN_STYLE = Automatic;
+				CURRENT_PROJECT_VERSION = 1;
+				DEVELOPMENT_TEAM = 4GGQPGRTSV;
+				GENERATE_INFOPLIST_FILE = YES;
+				INFOPLIST_FILE = "Edit-Ctrl-Demo/Info.plist";
+				INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
+				INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
+				INFOPLIST_KEY_UIMainStoryboardFile = Main;
+				INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+				INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+				IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+				);
+				MARKETING_VERSION = 1.0;
+				PRODUCT_BUNDLE_IDENTIFIER = com.compdfkit.demo.edit;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_EMIT_LOC_STRINGS = YES;
+				TARGETED_DEVICE_FAMILY = "1,2";
+			};
+			name = Debug;
+		};
+		4F17C07C29F4FBFF00445550 /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+				CODE_SIGN_STYLE = Automatic;
+				CURRENT_PROJECT_VERSION = 1;
+				DEVELOPMENT_TEAM = 4GGQPGRTSV;
+				GENERATE_INFOPLIST_FILE = YES;
+				INFOPLIST_FILE = "Edit-Ctrl-Demo/Info.plist";
+				INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
+				INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
+				INFOPLIST_KEY_UIMainStoryboardFile = Main;
+				INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+				INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+				IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+				);
+				MARKETING_VERSION = 1.0;
+				PRODUCT_BUNDLE_IDENTIFIER = com.compdfkit.demo.edit;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_EMIT_LOC_STRINGS = YES;
+				TARGETED_DEVICE_FAMILY = "1,2";
+			};
+			name = Release;
+		};
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+		4F17C05C29F4FBFD00445550 /* Build configuration list for PBXProject "Edit-Ctrl-Demo" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				4F17C07829F4FBFF00445550 /* Debug */,
+				4F17C07929F4FBFF00445550 /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+		4F17C07A29F4FBFF00445550 /* Build configuration list for PBXNativeTarget "Edit-Ctrl-Demo" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				4F17C07B29F4FBFF00445550 /* Debug */,
+				4F17C07C29F4FBFF00445550 /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+/* End XCConfigurationList section */
+	};
+	rootObject = 4F17C05929F4FBFD00445550 /* Project object */;
+}

+ 7 - 0
Edit-Ctrl-Demo/Edit-Ctrl-Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+   version = "1.0">
+   <FileRef
+      location = "self:">
+   </FileRef>
+</Workspace>

+ 8 - 0
Edit-Ctrl-Demo/Edit-Ctrl-Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>IDEDidComputeMac32BitWarning</key>
+	<true/>
+</dict>
+</plist>

+ 24 - 0
Edit-Ctrl-Demo/Edit-Ctrl-Demo/AppDelegate.h

@@ -0,0 +1,24 @@
+//
+//  AppDelegate.h
+//  Edit-Ctrl-Demo
+//
+//  Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
+//
+//  THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
+//  AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
+//  UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
+//  This notice may not be removed from this file.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface AppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (nonatomic, readonly) UIWindow *window;
+
++ (AppDelegate *)sharedAppDelegate;
+
+- (void)configWindow:(UIWindow *)window;
+
+@end
+

+ 108 - 0
Edit-Ctrl-Demo/Edit-Ctrl-Demo/AppDelegate.m

@@ -0,0 +1,108 @@
+//
+//  AppDelegate.m
+//  Edit-Ctrl-Demo
+//
+//  Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
+//
+//  THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
+//  AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
+//  UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
+//  This notice may not be removed from this file.
+//
+
+#import "AppDelegate.h"
+
+#import <ComPDFKit/ComPDFKit.h>
+#import <compdfkit_tools/compdfkit_tools.h>
+
+#import "CPDFViewController.h"
+#import "XMLParseManager.h"
+
+static AppDelegate *appDelegate = NULL;
+
+@interface AppDelegate ()
+
+@property (nonatomic, strong) UIWindow *window;
+
+@property (nonatomic, strong) XMLParseManager *manager;
+
+@end
+
+
+@implementation AppDelegate
+
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+    // Override point for customization after application launch.
+    NSString *path = [[NSBundle mainBundle]pathForResource:@"SDKLicense" ofType:@"xml"];
+    NSURL *url = [NSURL fileURLWithPath:path];
+    _manager = [[XMLParseManager alloc]init];
+    [_manager parseXMLWithURL:url completion:^(BOOL SUC, XPDXMLElement *data,NSError *error) {
+        if (SUC) {
+            NSDictionary * attribute = data.attribute;
+            NSString * key = attribute[@"key"];
+            NSString * secret = attribute[@"secret"];
+            [CPDFKit setLicenseKey:key secret:secret];
+            
+            if (@available(iOS 13.0, *)) {
+                
+            } else {
+                UIWindow *windows = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
+                [self configWindow:windows];
+
+            }
+            
+        }else{
+            NSLog(@"error = %@",error);
+        }
+    }];
+
+    return YES;
+}
+
+- (void)configWindow:(UIWindow *)window {
+    self.window = window;
+    self.window.backgroundColor = [UIColor whiteColor];
+    
+    NSString *tBundleFilePath = [[NSBundle mainBundle] pathForResource:@"PDF32000_2008" ofType:@"pdf"];
+    
+    NSString *docsFolder = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES).firstObject;
+    NSString * filePath = [docsFolder stringByAppendingPathComponent:tBundleFilePath.lastPathComponent];
+    
+    [[NSFileManager defaultManager] copyItemAtPath:tBundleFilePath toPath:filePath error:nil];
+    
+    CPDFViewController *pdfViewController = [[CPDFViewController alloc] initWithFilePath:filePath];
+    CNavigationController *navController = [[CNavigationController alloc]initWithRootViewController:pdfViewController];
+
+    self.window.rootViewController = navController;
+    
+    [self.window makeKeyAndVisible];
+
+}
+
++ (AppDelegate *)sharedAppDelegate {
+    if (!appDelegate)
+        appDelegate = [[AppDelegate alloc] init];
+    
+    return appDelegate;
+}
+
+
+#pragma mark - UISceneSession lifecycle
+
+
+- (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options API_AVAILABLE(ios(13.0)){
+    // Called when a new scene session is being created.
+    // Use this method to select a configuration to create the new scene with.
+    return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role];
+}
+
+
+- (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet<UISceneSession *> *)sceneSessions API_AVAILABLE(ios(13.0)){
+    // Called when the user discards a scene session.
+    // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
+    // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
+}
+
+
+@end

+ 11 - 0
Edit-Ctrl-Demo/Edit-Ctrl-Demo/Assets.xcassets/AccentColor.colorset/Contents.json

@@ -0,0 +1,11 @@
+{
+  "colors" : [
+    {
+      "idiom" : "universal"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

+ 14 - 0
Edit-Ctrl-Demo/Edit-Ctrl-Demo/Assets.xcassets/AppIcon.appiconset/Contents.json

@@ -0,0 +1,14 @@
+{
+  "images" : [
+    {
+      "filename" : "icon-1024.png",
+      "idiom" : "universal",
+      "platform" : "ios",
+      "size" : "1024x1024"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
Edit-Ctrl-Demo/Edit-Ctrl-Demo/Assets.xcassets/AppIcon.appiconset/icon-1024.png


+ 6 - 0
Edit-Ctrl-Demo/Edit-Ctrl-Demo/Assets.xcassets/Contents.json

@@ -0,0 +1,6 @@
+{
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

+ 25 - 0
Edit-Ctrl-Demo/Edit-Ctrl-Demo/Base.lproj/LaunchScreen.storyboard

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
+    <dependencies>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
+        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
+    </dependencies>
+    <scenes>
+        <!--View Controller-->
+        <scene sceneID="EHf-IW-A2E">
+            <objects>
+                <viewController id="01J-lp-oVM" sceneMemberID="viewController">
+                    <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
+                        <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
+                        <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
+                    </view>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="53" y="375"/>
+        </scene>
+    </scenes>
+</document>

+ 33 - 0
Edit-Ctrl-Demo/Edit-Ctrl-Demo/Base.lproj/Main.storyboard

@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
+    <device id="retina6_12" orientation="portrait" appearance="light"/>
+    <dependencies>
+        <deployment identifier="iOS"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/>
+        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
+        <capability name="System colors in document resources" minToolsVersion="11.0"/>
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
+    </dependencies>
+    <scenes>
+        <!--View Controller-->
+        <scene sceneID="tne-QT-ifu">
+            <objects>
+                <viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController">
+                    <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
+                        <rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
+                        <color key="backgroundColor" systemColor="systemBackgroundColor"/>
+                    </view>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="24" y="-34"/>
+        </scene>
+    </scenes>
+    <resources>
+        <systemColor name="systemBackgroundColor">
+            <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
+        </systemColor>
+    </resources>
+</document>

+ 1 - 1
Annotation-Ctrl-Demo/Annotation-Ctrl-Demo/CPDFViewController.h

@@ -1,6 +1,6 @@
 //
 //  ViewController.h
-//  Annotation-Ctrl-Demo
+//   ]Edit-Ctrl-Demo
 //
 //  Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
 //

+ 6 - 7
Annotation-Ctrl-Demo/Annotation-Ctrl-Demo/CPDFViewController.m

@@ -1,6 +1,6 @@
 //
-//  ViewController.m
-//  Annotation-Ctrl-Demo
+//  CPDFViewController.m
+//   Edit-Ctrl-Demo
 //
 //  Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
 //
@@ -15,7 +15,7 @@
 #import <ComPDFKit/ComPDFKit.h>
 #import <compdfkit_tools/compdfkit_tools.h>
 
-@interface CPDFViewController () <UISearchBarDelegate,CPDFViewDelegate,CPDFListViewDelegate, CPDFMoreListViewDelegate, CSearchToolbarDelegate, CPDFDisplayViewDelegate, CPDFBOTAViewControllerDelegate,CPDFSearchResultsDelegate,CPDFThumbnailViewControllerDelegate>
+@interface CPDFViewController ()<UISearchBarDelegate,CPDFViewDelegate,CPDFListViewDelegate, CPDFMoreListViewDelegate, CSearchToolbarDelegate, CPDFDisplayViewDelegate, CPDFBOTAViewControllerDelegate,CPDFSearchResultsDelegate, CPDFThumbnailViewControllerDelegate>
 
 @property(nonatomic, strong) NSString *filePath;
 
@@ -37,16 +37,13 @@
 
 - (instancetype)initWithFilePath:(NSString *)filePath {
     if(self = [super init]) {
-        _filePath = filePath;
+        self.filePath = filePath;
     }
     return self;
 }
 
-#pragma mark ViewController Methods
-
 - (void)viewDidLoad {
     [super viewDidLoad];
-    // Do any additional setup after loading the view.
     
     self.view.backgroundColor = [CPDFColorUtils CPDFViewControllerBackgroundColor];
     
@@ -95,6 +92,8 @@
     }
 }
 
+#pragma mark - Accessors
+
 #pragma mark - Public method
 
 - (void)reloadDocumentWithFilePath:(NSString *)filePath completion:(void (^)(BOOL result))completion {

+ 23 - 0
Edit-Ctrl-Demo/Edit-Ctrl-Demo/Info.plist

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>UIApplicationSceneManifest</key>
+	<dict>
+		<key>UIApplicationSupportsMultipleScenes</key>
+		<false/>
+		<key>UISceneConfigurations</key>
+		<dict>
+			<key>UIWindowSceneSessionRoleApplication</key>
+			<array>
+				<dict>
+					<key>UISceneConfigurationName</key>
+					<string>Default Configuration</string>
+					<key>UISceneDelegateClassName</key>
+					<string>SceneDelegate</string>
+				</dict>
+			</array>
+		</dict>
+	</dict>
+</dict>
+</plist>

+ 20 - 0
Edit-Ctrl-Demo/Edit-Ctrl-Demo/SceneDelegate.h

@@ -0,0 +1,20 @@
+//
+//  SceneDelegate.h
+//  Edit-Ctrl-Demo
+//
+//  Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
+//
+//  THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
+//  AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
+//  UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
+//  This notice may not be removed from this file.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface SceneDelegate : UIResponder <UIWindowSceneDelegate>
+
+@property (strong, nonatomic) UIWindow * window;
+
+@end
+

+ 63 - 0
Edit-Ctrl-Demo/Edit-Ctrl-Demo/SceneDelegate.m

@@ -0,0 +1,63 @@
+//
+//  SceneDelegate.m
+//  Edit-Ctrl-Demo
+//
+//  Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
+//
+//  THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
+//  AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
+//  UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
+//  This notice may not be removed from this file.
+//
+
+#import "SceneDelegate.h"
+#import "AppDelegate.h"
+
+@interface SceneDelegate ()
+
+@end
+
+@implementation SceneDelegate
+
+
+- (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions API_AVAILABLE(ios(13.0)){
+    UIWindow * window = [[UIWindow alloc] initWithWindowScene:scene];
+    
+    [[AppDelegate sharedAppDelegate] configWindow:window];
+}
+
+
+- (void)sceneDidDisconnect:(UIScene *)scene API_AVAILABLE(ios(13.0)){
+    // Called as the scene is being released by the system.
+    // This occurs shortly after the scene enters the background, or when its session is discarded.
+    // Release any resources associated with this scene that can be re-created the next time the scene connects.
+    // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead).
+}
+
+
+- (void)sceneDidBecomeActive:(UIScene *)scene API_AVAILABLE(ios(13.0)){
+    // Called when the scene has moved from an inactive state to an active state.
+    // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
+}
+
+
+- (void)sceneWillResignActive:(UIScene *)scene API_AVAILABLE(ios(13.0)){
+    // Called when the scene will move from an active state to an inactive state.
+    // This may occur due to temporary interruptions (ex. an incoming phone call).
+}
+
+
+- (void)sceneWillEnterForeground:(UIScene *)scene API_AVAILABLE(ios(13.0)){
+    // Called as the scene transitions from the background to the foreground.
+    // Use this method to undo the changes made on entering the background.
+}
+
+
+- (void)sceneDidEnterBackground:(UIScene *)scene API_AVAILABLE(ios(13.0)){
+    // Called as the scene transitions from the foreground to the background.
+    // Use this method to save data, release shared resources, and store enough scene-specific state information
+    // to restore the scene back to its current state.
+}
+
+
+@end

+ 18 - 0
Edit-Ctrl-Demo/Edit-Ctrl-Demo/main.m

@@ -0,0 +1,18 @@
+//
+//  main.m
+//  Edit-Ctrl-Demo
+//
+//  Created by chenyu on 2023/4/23.
+//
+
+#import <UIKit/UIKit.h>
+#import "AppDelegate.h"
+
+int main(int argc, char * argv[]) {
+    NSString * appDelegateClassName;
+    @autoreleasepool {
+        // Setup code that might create autoreleased objects goes here.
+        appDelegateClassName = NSStringFromClass([AppDelegate class]);
+    }
+    return UIApplicationMain(argc, argv, nil, appDelegateClassName);
+}

BIN
TestFile/1126 一鍵移轉 Migrating files with one tap.pdf


+ 3 - 0
compdfkit-demo.xcworkspace/contents.xcworkspacedata

@@ -1,6 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Workspace
    version = "1.0">
+   <FileRef
+      location = "group:Edit-Ctrl-Demo/Edit-Ctrl-Demo.xcodeproj">
+   </FileRef>
    <FileRef
       location = "group:Annotation-Ctrl-Demo/Annotation-Ctrl-Demo.xcodeproj">
    </FileRef>