Skip to content

Commit d3e6a55

Browse files
committed
compdfkit_flutter 2.2.1
1 parent 1d52853 commit d3e6a55

File tree

63 files changed

+2485
-367
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2485
-367
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
## 2.2.1
2+
* Added the features support for ComPDFKit PDF SDK for iOS [iOS V2.2.1](https://www.compdf.com/pdf-sdk/changelog-ios#v2-2-1).
3+
* Added the features support for ComPDFKit PDF SDK for Android [Android V2.2.1](https://www.compdf.com/pdf-sdk/changelog-android#v2-2-1).
4+
* Added API for importing fonts.
5+
* Added API for adding watermarks.
6+
* Added API for security settings.
7+
* Added view-related APIs, including opening thumbnail lists, preview settings, watermark editing, and security settings.
8+
* Fixed an issue where certain documents could crash when importing XFDF annotations.
9+
* Fixed an issue on iOS where the author information for Ink annotations was not displayed.
10+
* Fixed a crash in iOS 18 when editing content in the context menu.
11+
* Fixed a crash on certain Android devices when initializing the SDK.
12+
* Fixed a crash on Android related to screenshot functionality.
13+
* Optimize the screenshot function of the Android platform to improve the quality of image capture
14+
* Fixed an issue on Android with the LaBan Key input method.
15+
* Fixed an issue on Android where the modified date was not updated when saving a modified document.
16+
* Fixed a crash on Android related to the undo operation in content editing.
17+
* Fixed an issue on Android where form background color was transparent when highlighting forms was not enabled.
18+
* Fixed an issue on Android where annotation text would display incorrectly when editing text in highlighted comment areas.
19+
* Fixed an issue on Android where cloud comment borders were displayed incorrectly in graphic annotations.
20+
For detailed information about the new interfaces, please refer to `cpdf_reader_widget_controller.dart` and `cpdf_document.dart`.
21+
22+
123
## 2.2.0
224
* Added the features support for ComPDFKit PDF SDK for iOS [iOS V2.2.0](https://www.compdf.com/pdf-sdk/changelog-ios#v2-2-0).
325
* Added the features support for ComPDFKit PDF SDK for Android [Android V2.2.0](https://www.compdf.com/pdf-sdk/changelog-android#v2-2-0).

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Copyright (C) 2014-2024 PDF Technologies, Inc. All Rights Reserved.
1+
Copyright (C) 2014-2025 PDF Technologies, Inc. All Rights Reserved.
22
No part of this document can be reproduced, transferred, distributed or stored in any
33
format without the prior written permission of PDF Technologies.

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Alternatively you can update the `AndroidManifest.xml` file to use `FlutterFragm
151151
dependencies:
152152
flutter:
153153
sdk: flutter
154-
+ compdfkit_flutter: ^2.2.0
154+
+ compdfkit_flutter: ^2.2.1
155155
```
156156

157157
8. Add the PDF documents you want to display in the project
@@ -197,7 +197,7 @@ cd example
197197
dependencies:
198198
flutter:
199199
sdk: flutter
200-
+ compdfkit_flutter: ^2.2.0
200+
+ compdfkit_flutter: ^2.2.1
201201
```
202202

203203
4. Open your project's Podfile in a text editor:
@@ -220,8 +220,8 @@ open ios/Podfile
220220
use_modular_headers!`
221221

222222
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
223-
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/2.2.0.podspec'
224-
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/2.2.0.podspec'
223+
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/2.2.1.podspec'
224+
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/2.2.1.podspec'
225225

226226
end
227227
```
@@ -557,8 +557,8 @@ target 'PDFView_RN' do
557557
# Pods for testing
558558
end
559559

560-
+ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.2.0'
561-
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.2.0'
560+
+ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.2.1'
561+
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.2.1'
562562

563563
# Enables Flipper.
564564
#

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ android {
4040
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
4141

4242
// dependencies compdfkit pdf sdk
43-
api 'com.compdf:compdfkit-tools:2.2.0'
43+
api 'com.compdf:compdfkit-tools:2.2.1'
4444

4545
testImplementation 'junit:junit:4.13.2'
4646
testImplementation 'org.mockito:mockito-core:5.0.0'

android/src/main/java/com/compdfkit/flutter/compdfkit_flutter/CompdfkitFlutterPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright © 2014-2024 PDF Technologies, Inc. All Rights Reserved.
2+
* Copyright © 2014-2025 PDF Technologies, Inc. All Rights Reserved.
33
*
44
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
55
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.

android/src/main/java/com/compdfkit/flutter/compdfkit_flutter/constants/CPDFConstants.java

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright © 2014-2024 PDF Technologies, Inc. All Rights Reserved.
2+
* Copyright © 2014-2025 PDF Technologies, Inc. All Rights Reserved.
33
*
44
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
55
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
@@ -117,6 +117,39 @@ public static class ChannelMethod {
117117
public static final String REMOVE_ALL_ANNOTATIONS = "remove_all_annotations";
118118

119119
public static final String GET_PAGE_COUNT = "get_page_count";
120+
121+
public static final String SET_PREVIEW_MODE = "set_preview_mode";
122+
123+
public static final String GET_PREVIEW_MODE = "get_preview_mode";
124+
125+
public static final String SHOW_THUMBNAIL_VIEW = "show_thumbnail_view";
126+
127+
public static final String SHOW_BOTA_VIEW = "show_bota_view";
128+
129+
public static final String SHOW_ADD_WATERMARK_VIEW = "show_add_watermark_view";
130+
131+
public static final String SHOW_SECURITY_VIEW = "show_security_view";
132+
133+
public static final String SHOW_DISPLAY_SETTINGS_VIEW = "show_display_settings_view";
134+
135+
public static final String ENTER_SNIP_MODE = "enter_snip_mode";
136+
137+
public static final String EXIT_SNIP_MODE = "exit_snip_mode";
138+
139+
public static final String SET_SECURITY_INFO = "set_security_info";
140+
141+
public static final String SAVE_AS = "save_as";
142+
143+
public static final String PRINT = "print";
144+
145+
public static final String CREATE_URI = "create_uri";
146+
public static final String SET_USER_PASSWORD = "set_user_password";
147+
public static final String REMOVE_PASSWORD = "remove_password";
148+
public static final String SET_PASSWORD = "set_password";
149+
public static final String CREATE_WATERMARK = "create_watermark";
150+
public static final String REMOVE_ALL_WATERMARKS = "remove_all_watermarks";
151+
public static final String GET_ENCRYPT_ALGORITHM = "get_encrypt_algorithm";
152+
public static final String SET_IMPORT_FONT_DIRECTORY = "set_import_font_directory";
120153
}
121154

122155
}

android/src/main/java/com/compdfkit/flutter/compdfkit_flutter/platformview/CPDFViewCtrlFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright © 2014-2024 PDF Technologies, Inc. All Rights Reserved.
2+
* Copyright © 2014-2025 PDF Technologies, Inc. All Rights Reserved.
33
*
44
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
55
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.

android/src/main/java/com/compdfkit/flutter/compdfkit_flutter/platformview/CPDFViewCtrlFlutter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright © 2014-2024 PDF Technologies, Inc. All Rights Reserved.
2+
* Copyright © 2014-2025 PDF Technologies, Inc. All Rights Reserved.
33
*
44
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
55
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
@@ -87,7 +87,7 @@ public void onViewAttachedToWindow(@NonNull View v) {
8787
if (fragmentActivity != null) {
8888
fragmentActivity.getSupportFragmentManager()
8989
.beginTransaction()
90-
.add(fragmentContainerView.getId(), documentFragment)
90+
.add(fragmentContainerView.getId(), documentFragment, "documentFragment")
9191
.setReorderingAllowed(true)
9292
.commit();
9393
}

android/src/main/java/com/compdfkit/flutter/compdfkit_flutter/plugin/BaseMethodChannelPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright © 2014-2024 PDF Technologies, Inc. All Rights Reserved.
2+
* Copyright © 2014-2025 PDF Technologies, Inc. All Rights Reserved.
33
* <p>
44
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
55
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.

0 commit comments

Comments
 (0)