Browse Source

ComPDFKit(flutter) - iOS 2.1.0 内容更新

yangliuhua 4 months ago
parent
commit
296cc44c40

+ 6 - 6
example/ios/Runner.xcodeproj/project.pbxproj

@@ -492,8 +492,8 @@
 				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
 				DEVELOPMENT_TEAM = 4GGQPGRTSV;
 				ENABLE_BITCODE = NO;
-				FLUTTER_BUILD_NAME = 2.0.2;
-				FLUTTER_BUILD_NUMBER = 2.0.2;
+				FLUTTER_BUILD_NAME = 2.1.0;
+				FLUTTER_BUILD_NUMBER = 2.1.0;
 				INFOPLIST_FILE = Runner/Info.plist;
 				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
 				LD_RUNPATH_SEARCH_PATHS = (
@@ -682,8 +682,8 @@
 				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
 				DEVELOPMENT_TEAM = 4GGQPGRTSV;
 				ENABLE_BITCODE = NO;
-				FLUTTER_BUILD_NAME = 2.0.2;
-				FLUTTER_BUILD_NUMBER = 2.0.2;
+				FLUTTER_BUILD_NAME = 2.1.0;
+				FLUTTER_BUILD_NUMBER = 2.1.0;
 				INFOPLIST_FILE = Runner/Info.plist;
 				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
 				LD_RUNPATH_SEARCH_PATHS = (
@@ -711,8 +711,8 @@
 				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
 				DEVELOPMENT_TEAM = 4GGQPGRTSV;
 				ENABLE_BITCODE = NO;
-				FLUTTER_BUILD_NAME = 2.0.2;
-				FLUTTER_BUILD_NUMBER = 2.0.2;
+				FLUTTER_BUILD_NAME = 2.1.0;
+				FLUTTER_BUILD_NUMBER = 2.1.0;
 				INFOPLIST_FILE = Runner/Info.plist;
 				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
 				LD_RUNPATH_SEARCH_PATHS = (

+ 26 - 3
example/ios/Runner/en.lproj/Localizable.strings

@@ -15,14 +15,14 @@
   
 */
 
-"Open Document" = "Open Document";
-
 "Close" = "Close";
 "Settings" = "Settings";
 "Highlight Links" = "Highlight Links";
 "Highlight Form Fields" = "Highlight Form Fields";
 "File Author" = "File Author";
 "ComPDFKit" = "ComPDFKit";
+"Annotator" = "Annotator";
+"The fonts data is saved with the file" = "The fonts data is saved with the file";
 "SDK Information" = "SDK Information";
 "Version" = "Version";
 "V 1.11.0" = "V 1.11.0";
@@ -134,6 +134,7 @@
 "Dark" = "Dark";
 "Sepia" = "Sepia";
 "Reseda" = "Reseda";
+"Snip" = "Snip";
 
 "Information" = "Document Info";
 "Abstract:" = "Abstract:";
@@ -289,7 +290,6 @@
 "Crop" = "Crop";
 "Export Successfully!" = "Export Successfully!";
 
-
 "Text Field" = "Text Field";
 "Check Box" = "Check Box";
 "Radio Button" = "Radio Button";
@@ -419,6 +419,7 @@
 "Signer:" = "Signer:";
 "Signing Time:" = "Signing Time:";
 "Signaturess" = "Signature";
+"Your message conforms to the format of an email." = "Your message conforms to the format of an email.";
 
 "Certification Authority Statement" = "Certification Authority Statement";
 "The signer's identity is valid." = "The signer's identity is valid.";
@@ -524,3 +525,25 @@
 "Please enter Replace text!" = "Please enter Replace text!";
 "No changes have been made to the document!" = "No changes have been made to the document!";
 "Save successfully!" = "Save successfully!";
+
+
+"Import Annotations" = "Import Annotations";
+"Export Annotations" = "Export Annotations";
+"Delete all annotations" = "Delete all annotations";
+"Delete all replies" = "Delete all replies";
+"Accepted" = "Accepted";
+"Rejected" = "Rejected";
+"Cancelled" = "Cancelled";
+"Completed" = "Completed";
+"Add a new reply" = "Add a new reply";
+"View replies" = "View replies";
+"Delete Annotation" = "Delete Annotation";
+"Delete annotation" = "Delete annotation";
+"Add New Reply" = "Add New Reply";
+"Reply or add thoughts" = "Reply or add thoughts";
+"Replies of Annotation" = "Replies of Annotation";
+"Total: %ld" = "Total: %ld";
+"Unmarked" = "Unmarked";
+"Marked" = "Marked";
+"Reply" = "Reply";
+"View Reply" = "View Reply";

+ 27 - 3
example/ios/Runner/zh-Hans.lproj/Localizable.strings

@@ -12,14 +12,14 @@
   
 */
 
-"Open Document" = "打开文档";
-
 "Close" = "关闭";
 "Settings" = "设置";
 "Highlight Links" = "高亮链接文字";
 "Highlight Form Fields" = "高亮表单域";
 "File Author" = "文档作者";
 "ComPDFKit" = "ComPDFKit";
+"Annotator" = "注释作者";
+"The fonts data is saved with the file" = "字体数据随文件一起保存";
 "SDK Information" = "SDK 信息";
 "Version" = "版本";
 "V 1.11.0" = "V 1.11.0";
@@ -132,6 +132,7 @@
 "Dark" = "夜间模式";
 "Sepia" = "柔和模式";
 "Reseda" = "护眼模式";
+"Snip" = "截取";
 
 
 "Information" = "文档属性";
@@ -286,7 +287,7 @@
 "Crop" = "裁剪";
 "Paste and Match Style" = "带样式粘贴";
 "Export Successfully!" = "图片导出成功!";
-
+"Exit" = "退出";
 
 "Text Field" = "文本域";
 "Check Box" = "复选框";
@@ -417,6 +418,7 @@
 "Signer:" = "签署人:";
 "Signaturess" = "数字签名";
 "Signing Time:" = "签署时间:";
+"Your message conforms to the format of an email." = "您的信息符合电子邮件的格式。";
 
 "Certification Authority Statement" = "有效性小结";
 "The signer's identity is valid." = "签名者的身份有效。";
@@ -521,3 +523,25 @@
 "Please enter Replace text!" = "请输入替换文本!";
 "No changes have been made to the document!" = "文档没有进行任何修改!";
 "Save successfully!" = "保存成功!";
+
+
+"Import Annotations" = "导入注释";
+"Export Annotations" = "导出注释";
+"Delete all annotations" = "删除所有注释";
+"Delete all replies" = "删除所有回复";
+"Accepted" = "已接受";
+"Rejected" = "已拒绝";
+"Cancelled" = "已取消";
+"Completed" = "已完成";
+"Add a new reply" = "新增回复";
+"View replies" = "查看回复";
+"Delete Annotation" = "删除注释";
+"Delete annotation" = "删除注释";
+"Add New Reply" = "新增回复";
+"Reply or add thoughts" = "请输入回复内容";
+"Replies of Annotation" = "所有回复";
+"Total: %ld" = "共计%d条";
+"Unmarked" = "未标记";
+"Marked" = "已标记";
+"Reply" = "回复";
+"View Reply" = "查看回复";

+ 4 - 3
ios/Classes/reader/CPDFViewCtrlFactory.swift

@@ -69,7 +69,7 @@ class CPDFViewCtrlFlutter: NSObject, FlutterPlatformView, CPDFViewBaseController
         navigationController = CNavigationController(rootViewController: pdfViewController)
         navigationController.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
         navigationController.view.frame = frame
-        
+            
         _methodChannel = FlutterMethodChannel.init(name: "com.compdfkit.flutter.ui.pdfviewer.\(viewId)", binaryMessenger: messenger!)
         
         super.init()
@@ -77,7 +77,8 @@ class CPDFViewCtrlFlutter: NSObject, FlutterPlatformView, CPDFViewBaseController
         // Proxy set, but not used
         pdfViewController.delegate = self
         
-        navigationController.setViewControllers([pdfViewController], animated: false)
+        navigationController.setViewControllers([pdfViewController], animated: true)
+
         
         registeryMethodChannel(viewId: viewId, binaryMessenger: messenger!)
         
@@ -88,7 +89,7 @@ class CPDFViewCtrlFlutter: NSObject, FlutterPlatformView, CPDFViewBaseController
     }
         
     public func PDFViewBaseControllerDissmiss(_ baseControllerDelete: CPDFViewBaseController) {
-        baseControllerDelete.dismiss(animated: true)
+        
     }
     
     private func registeryMethodChannel(viewId: Int64, binaryMessenger messenger: FlutterBinaryMessenger){