Skip to content

Commit 40cf23f

Browse files
committed
v2.4.4
1 parent 93f9b4c commit 40cf23f

File tree

13 files changed

+84
-50
lines changed

13 files changed

+84
-50
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 2.4.4
2+
1. Added the features support for ComPDFKit PDF SDK for iOS V2.4.4.
3+
2. Added the features support for ComPDFKit PDF SDK for Android V2.4.4.
4+
3. Added configuration option to disable page editing in the thumbnail list.
5+
4. Added support for customizing the background color of the thumbnail list.
6+
5. Added iOS configuration to disable the save prompt on exit.
7+
6. Fixed incorrect default color value for global annotation properties.
8+
9+
110
## 2.4.3
211
1. Added the features support for ComPDFKit PDF SDK for iOS V2.4.3.
312
2. Added the features support for ComPDFKit PDF SDK for Android V2.4.3.

CONFIGURATION.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -785,11 +785,12 @@ This section is used to configure the types of forms enabled in the view's botto
785785

786786
##### Parameters
787787

788-
| Name | Type | Example | Description |
789-
| ----------------------- | ------------------- | ---------------------------- | ------------------------------------------------------------ |
790-
| themeMode | CPDFThemeMode | light | Set the view theme style, support `light`, `dark`, `system`, the default is `light` theme<br />**ComPDFKit SDK for Flutter:** => 2.0.2<br />Only Android Platform. |
791-
| fileSaveExtraFontSubset | boolean | true | When saving a document, whether to save the used font set together with the document. |
792-
| watermark | CPDFWatermarkConfig | { "saveAsNewFile" : true } | The user can configure the watermark addition popup, allowing them to choose whether to save the watermark directly to the current document or save it to a different directory.<br>**true**: Save to a different directory<br>**false**: Add to the current document directly |
788+
| Name | Type | Example | Description |
789+
| ----------------------- | ------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
790+
| themeMode | CPDFThemeMode | light | Set the view theme style, support `light`, `dark`, `system`, the default is `light` theme<br />**ComPDFKit SDK for Flutter:** => 2.0.2<br />Only Android Platform. |
791+
| fileSaveExtraFontSubset | boolean | true | When saving a document, whether to save the used font set together with the document. |
792+
| watermark | CPDFWatermarkConfig | { "saveAsNewFile" : true } | The user can configure the watermark addition popup, allowing them to choose whether to save the watermark directly to the current document or save it to a different directory.<br>**true**: Save to a different directory<br>**false**: Add to the current document directly |
793+
| thumbnail | CPDFThumbnail | { "title" : "", <br />"backgroundColor": "", <br /> "editMode" : true <br />} | |
793794

794795
##### themeMode Constants
795796

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Alternatively you can update the `AndroidManifest.xml` file to use `FlutterFragm
154154
dependencies:
155155
flutter:
156156
sdk: flutter
157-
+ compdfkit_flutter: ^2.4.3
157+
+ compdfkit_flutter: ^2.4.4
158158
```
159159

160160
8. Add the PDF documents you want to display in the project
@@ -200,7 +200,7 @@ cd example
200200
dependencies:
201201
flutter:
202202
sdk: flutter
203-
+ compdfkit_flutter: ^2.4.3
203+
+ compdfkit_flutter: ^2.4.4
204204
```
205205

206206
4. Open your project's Podfile in a text editor:
@@ -223,8 +223,8 @@ open ios/Podfile
223223
use_modular_headers!`
224224

225225
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
226-
+ pod "ComPDFKit", podspec:'https://file.compdf.com/cocoapods/ios/compdfkit_pdf_sdk/2.4.3/ComPDFKit.podspec'
227-
+ pod "ComPDFKit_Tools", podspec:'https://file.compdf.com/cocoapods/ios/compdfkit_pdf_sdk/2.4.3/ComPDFKit_Tools.podspec'
226+
+ pod "ComPDFKit", podspec:'https://file.compdf.com/cocoapods/ios/compdfkit_pdf_sdk/2.4.4/ComPDFKit.podspec'
227+
+ pod "ComPDFKit_Tools", podspec:'https://file.compdf.com/cocoapods/ios/compdfkit_pdf_sdk/2.4.4/ComPDFKit_Tools.podspec'
228228
end
229229
```
230230

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ android {
3939
compileOnly fileTree(include: ['*.jar','*.aar'], dir: 'libs')
4040

4141
// dependencies compdfkit pdf sdk
42-
api 'com.compdf:compdfkit-tools:2.4.3'
42+
api 'com.compdf:compdfkit-tools:2.4.4'
4343

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull MethodChannel.Result
317317
result.success(documentFragment.pdfToolBar.getMode().alias);
318318
break;
319319
case SHOW_THUMBNAIL_VIEW:
320-
boolean enterEditMode = (boolean) call.arguments;
321-
documentFragment.showPageEdit(enterEditMode);
320+
boolean enableEditMode = (boolean) call.arguments;
321+
documentFragment.showPageEdit(false, enableEditMode);
322322
result.success(null);
323323
break;
324324
case SHOW_BOTA_VIEW:

example/android/config.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ ext {
33
COMPILESDK: 33,
44
MINSDK: 21,
55
TARGETSDK: 33,
6-
VERSIONCODE: 18
6+
VERSIONCODE: 19
77
]
88
}

example/ios/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ flutter_ios_podfile_setup
3030
target 'Runner' do
3131
use_frameworks!
3232
use_modular_headers!
33-
pod "ComPDFKit", podspec:'https://file.compdf.com/cocoapods/ios/compdfkit_pdf_sdk/2.4.3/ComPDFKit.podspec'
34-
pod "ComPDFKit_Tools", podspec:'https://file.compdf.com/cocoapods/ios/compdfkit_pdf_sdk/2.4.3/ComPDFKit_Tools.podspec'
33+
pod "ComPDFKit", podspec:'https://file.compdf.com/cocoapods/ios/compdfkit_pdf_sdk/2.4.4/ComPDFKit.podspec'
34+
pod "ComPDFKit_Tools", podspec:'https://file.compdf.com/cocoapods/ios/compdfkit_pdf_sdk/2.4.4/ComPDFKit_Tools.podspec'
3535
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
3636
target 'RunnerTests' do
3737
inherit! :search_paths

example/pubspec.lock

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ packages:
55
dependency: transitive
66
description:
77
name: args
8-
sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04
8+
sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "2.7.0"
11+
version: "2.6.0"
1212
async:
1313
dependency: transitive
1414
description:
@@ -84,10 +84,10 @@ packages:
8484
dependency: transitive
8585
description:
8686
name: ffi
87-
sha256: "289279317b4b16eb2bb7e271abccd4bf84ec9bdcbe999e278a94b804f5630418"
87+
sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6"
8888
url: "https://pub.dev"
8989
source: hosted
90-
version: "2.1.4"
90+
version: "2.1.3"
9191
file:
9292
dependency: transitive
9393
description:
@@ -100,10 +100,10 @@ packages:
100100
dependency: "direct main"
101101
description:
102102
name: file_picker
103-
sha256: ab13ae8ef5580a411c458d6207b6774a6c237d77ac37011b13994879f68a8810
103+
sha256: "3d57312a53746ed4eb8c843dc50372454bbda37dd0c01a4d40fedc83e2ce4921"
104104
url: "https://pub.dev"
105105
source: hosted
106-
version: "8.3.7"
106+
version: "8.3.5"
107107
flutter:
108108
dependency: "direct main"
109109
description: flutter
@@ -131,18 +131,18 @@ packages:
131131
dependency: transitive
132132
description:
133133
name: flutter_plugin_android_lifecycle
134-
sha256: f948e346c12f8d5480d2825e03de228d0eb8c3a737e4cdaa122267b89c022b5e
134+
sha256: "615a505aef59b151b46bbeef55b36ce2b6ed299d160c51d84281946f0aa0ce0e"
135135
url: "https://pub.dev"
136136
source: hosted
137-
version: "2.0.28"
137+
version: "2.0.24"
138138
flutter_svg:
139139
dependency: "direct main"
140140
description:
141141
name: flutter_svg
142-
sha256: cd57f7969b4679317c17af6fd16ee233c1e60a82ed209d8a475c54fd6fd6f845
142+
sha256: c200fd79c918a40c5cd50ea0877fa13f81bdaf6f0a5d3dbcc2a13e3285d6aa1b
143143
url: "https://pub.dev"
144144
source: hosted
145-
version: "2.2.0"
145+
version: "2.0.17"
146146
flutter_test:
147147
dependency: "direct dev"
148148
description: flutter
@@ -162,10 +162,10 @@ packages:
162162
dependency: transitive
163163
description:
164164
name: http
165-
sha256: "2c11f3f94c687ee9bad77c171151672986360b2b001d109814ee7140b2cf261b"
165+
sha256: fe7ab022b76f3034adc518fb6ea04a82387620e19977665ea18d30a1cf43442f
166166
url: "https://pub.dev"
167167
source: hosted
168-
version: "1.4.0"
168+
version: "1.3.0"
169169
http_parser:
170170
dependency: transitive
171171
description:
@@ -372,18 +372,18 @@ packages:
372372
dependency: transitive
373373
description:
374374
name: url_launcher_android
375-
sha256: "8582d7f6fe14d2652b4c45c9b6c14c0b678c2af2d083a11b604caeba51930d79"
375+
sha256: "6fc2f56536ee873eeb867ad176ae15f304ccccc357848b351f6f0d8d4a40d193"
376376
url: "https://pub.dev"
377377
source: hosted
378-
version: "6.3.16"
378+
version: "6.3.14"
379379
url_launcher_ios:
380380
dependency: transitive
381381
description:
382382
name: url_launcher_ios
383-
sha256: "7f2022359d4c099eea7df3fdf739f7d3d3b9faf3166fb1dd390775176e0b76cb"
383+
sha256: "16a513b6c12bb419304e72ea0ae2ab4fed569920d1c7cb850263fe3acc824626"
384384
url: "https://pub.dev"
385385
source: hosted
386-
version: "6.3.3"
386+
version: "6.3.2"
387387
url_launcher_linux:
388388
dependency: transitive
389389
description:
@@ -412,10 +412,10 @@ packages:
412412
dependency: transitive
413413
description:
414414
name: url_launcher_web
415-
sha256: "4bd2b7b4dc4d4d0b94e5babfffbca8eac1a126c7f3d6ecbc1a11013faa3abba2"
415+
sha256: "3ba963161bd0fe395917ba881d320b9c4f6dd3c4a233da62ab18a5025c85f1e9"
416416
url: "https://pub.dev"
417417
source: hosted
418-
version: "2.4.1"
418+
version: "2.4.0"
419419
url_launcher_windows:
420420
dependency: transitive
421421
description:
@@ -428,10 +428,10 @@ packages:
428428
dependency: transitive
429429
description:
430430
name: vector_graphics
431-
sha256: a4f059dc26fc8295b5921376600a194c4ec7d55e72f2fe4c7d2831e103d461e6
431+
sha256: "44cc7104ff32563122a929e4620cf3efd584194eec6d1d913eb5ba593dbcf6de"
432432
url: "https://pub.dev"
433433
source: hosted
434-
version: "1.1.19"
434+
version: "1.1.18"
435435
vector_graphics_codec:
436436
dependency: transitive
437437
description:
@@ -444,10 +444,10 @@ packages:
444444
dependency: transitive
445445
description:
446446
name: vector_graphics_compiler
447-
sha256: "557a315b7d2a6dbb0aaaff84d857967ce6bdc96a63dc6ee2a57ce5a6ee5d3331"
447+
sha256: "1b4b9e706a10294258727674a340ae0d6e64a7231980f9f9a3d12e4b42407aad"
448448
url: "https://pub.dev"
449449
source: hosted
450-
version: "1.1.17"
450+
version: "1.1.16"
451451
vector_math:
452452
dependency: transitive
453453
description:
@@ -468,10 +468,10 @@ packages:
468468
dependency: transitive
469469
description:
470470
name: web
471-
sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
471+
sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
472472
url: "https://pub.dev"
473473
source: hosted
474-
version: "1.1.1"
474+
version: "1.1.0"
475475
webdriver:
476476
dependency: transitive
477477
description:
@@ -484,10 +484,10 @@ packages:
484484
dependency: transitive
485485
description:
486486
name: win32
487-
sha256: "66814138c3562338d05613a6e368ed8cfb237ad6d64a9e9334be3f309acfca03"
487+
sha256: daf97c9d80197ed7b619040e86c8ab9a9dad285e7671ee7390f9180cc828a51e
488488
url: "https://pub.dev"
489489
source: hosted
490-
version: "5.14.0"
490+
version: "5.10.1"
491491
xml:
492492
dependency: transitive
493493
description:
@@ -497,5 +497,5 @@ packages:
497497
source: hosted
498498
version: "6.5.0"
499499
sdks:
500-
dart: ">=3.8.0 <4.0.0"
500+
dart: ">=3.7.0-0 <4.0.0"
501501
flutter: ">=3.27.0"

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: compdfkit_flutter_example
22
description: Demonstrates how to use the compdfkit_flutter plugin.
3-
version: 2.4.3
3+
version: 2.4.4
44
homepage: https://www.compdf.com
55
repository: https://github.com/ComPDFKit/compdfkit-pdf-sdk-flutter
66
issue_tracker: https://www.compdf.com/support

ios/Classes/reader/CPDFViewCtrlPlugin.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ class CPDFViewCtrlPlugin {
264264
let editMode = call.arguments as! Bool
265265

266266
if editMode {
267-
self.pdfViewController.enterPDFPageEdit()
267+
self.pdfViewController.enterThumbnail(false)
268268
} else {
269-
self.pdfViewController.enterThumbnail()
269+
self.pdfViewController.enterThumbnail(true)
270270
}
271271
result(nil)
272272
case CPDFConstants.showBotaView:

0 commit comments

Comments
 (0)