Skip to content

Commit db9becd

Browse files
committed
v2.4.5+2
1 parent c955067 commit db9becd

File tree

10 files changed

+51
-56
lines changed

10 files changed

+51
-56
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 2.4.5+2
2+
1. Added support for filling out forms in annotation mode on Android.
3+
2. Fixed an issue where the toolbar would reappear after setting mainToolbarVisible=false on Android.
4+
3. Fixed an issue where FreeText annotations were not fully displayed after text input was completed.
5+
16
## 2.4.5+1
27
1. Fixed the issue that calling the save() function did not save the text field form being edited.
38

README.md

Lines changed: 6 additions & 18 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.5+1
157+
+ compdfkit_flutter: ^2.4.5+2
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.5+1
203+
+ compdfkit_flutter: ^2.4.5+2
204204
```
205205

206206
4. Open your project's Podfile in a text editor:
@@ -289,18 +289,6 @@ ComPDFKit PDF SDK is a commercial SDK, which requires a license to grant develop
289289

290290
To initialize ComPDFKit using a license key, call either of the following before using any other ComPDFKit APIs or features:
291291

292-
* **Online license:**
293-
294-
```dart
295-
ComPDFKit.initialize(androidOnlineLicense : 'your compdfkit key', iosOnlineLicense : 'your compdfkit key');
296-
```
297-
298-
* **Offline license:**
299-
300-
```dart
301-
ComPDFKit.init('your compdfkit key');
302-
```
303-
304292
* **Initialize Using License XML File**:
305293

306294
```dart
@@ -401,8 +389,8 @@ class _MyAppState extends State<MyApp> {
401389
}
402390
403391
void _init() async {
404-
/// If you are using an offline certified license, please use init() method
405-
ComPDFKit.init('your compdfkit key');
392+
File licenseFile = await extractAsset(context, 'assets/license_key_flutter.xml');
393+
ComPDFKit.initWithPath(licenseFile.path);
406394
}
407395
408396
@override
@@ -485,8 +473,8 @@ class _MyAppState extends State<MyApp> {
485473
}
486474
487475
void _init() async {
488-
/// If you are using an offline certified license, please use init() method
489-
ComPDFKit.init('your compdfkit key');
476+
File licenseFile = await extractAsset(context, 'assets/license_key_flutter.xml');
477+
ComPDFKit.initWithPath(licenseFile.path);
490478
}
491479
492480
@override

android/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ buildscript {
55
repositories {
66
google()
77
mavenCentral()
8-
mavenLocal()
8+
maven { url 'https://central.sonatype.com/repository/maven-snapshots/' }
9+
910

1011
}
1112

@@ -39,7 +40,7 @@ android {
3940
compileOnly fileTree(include: ['*.jar','*.aar'], dir: 'libs')
4041

4142
// dependencies compdfkit pdf sdk
42-
api 'com.compdf:compdfkit-tools:2.4.5'
43+
api 'com.compdf:compdfkit-tools:2.4.5.2'
4344

4445
testImplementation 'junit:junit:4.13.2'
4546
testImplementation 'org.mockito:mockito-core:5.0.0'
@@ -59,5 +60,5 @@ android {
5960
}
6061
}
6162
// refresh snapshot implementation
62-
//configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'seconds' }
63+
configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'seconds' }
6364

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: 20
6+
VERSIONCODE: 21
77
]
88
}

example/ios/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ target 'Runner' do
3232
use_modular_headers!
3333
pod "ComPDFKit", podspec:'https://file.compdf.com/cocoapods/ios/compdfkit_pdf_sdk/2.4.5/ComPDFKit.podspec'
3434
pod "ComPDFKit_Tools", podspec:'https://file.compdf.com/cocoapods/ios/compdfkit_pdf_sdk/2.4.5/ComPDFKit_Tools.podspec'
35+
3536
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
3637
target 'RunnerTests' do
3738
inherit! :search_paths

example/lib/cpdf_annotations_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class _CpdfAnnotationsExampleState extends State<CPDFAnnotationsExample> {
5050
title: 'Annotations Example',
5151
documentPath: widget.documentPath,
5252
configuration: CPDFConfiguration(
53-
modeConfig: const CPDFModeConfig(readerOnly: true),
53+
modeConfig: const CPDFModeConfig(readerOnly: true, initialViewMode: CPDFViewMode.annotations),
5454
toolbarConfig: const CPDFToolbarConfig(
5555
mainToolbarVisible: false
5656
),

example/pubspec.lock

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ packages:
55
dependency: transitive
66
description:
77
name: args
8-
sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6
8+
sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "2.6.0"
11+
version: "2.7.0"
1212
async:
1313
dependency: transitive
1414
description:
@@ -55,7 +55,7 @@ packages:
5555
path: ".."
5656
relative: true
5757
source: path
58-
version: "2.4.3"
58+
version: "2.4.5+2"
5959
cross_file:
6060
dependency: transitive
6161
description:
@@ -84,10 +84,10 @@ packages:
8484
dependency: transitive
8585
description:
8686
name: ffi
87-
sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6"
87+
sha256: "289279317b4b16eb2bb7e271abccd4bf84ec9bdcbe999e278a94b804f5630418"
8888
url: "https://pub.dev"
8989
source: hosted
90-
version: "2.1.3"
90+
version: "2.1.4"
9191
file:
9292
dependency: transitive
9393
description:
@@ -100,10 +100,10 @@ packages:
100100
dependency: "direct main"
101101
description:
102102
name: file_picker
103-
sha256: "3d57312a53746ed4eb8c843dc50372454bbda37dd0c01a4d40fedc83e2ce4921"
103+
sha256: ab13ae8ef5580a411c458d6207b6774a6c237d77ac37011b13994879f68a8810
104104
url: "https://pub.dev"
105105
source: hosted
106-
version: "8.3.5"
106+
version: "8.3.7"
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: "615a505aef59b151b46bbeef55b36ce2b6ed299d160c51d84281946f0aa0ce0e"
134+
sha256: "6382ce712ff69b0f719640ce957559dde459e55ecd433c767e06d139ddf16cab"
135135
url: "https://pub.dev"
136136
source: hosted
137-
version: "2.0.24"
137+
version: "2.0.29"
138138
flutter_svg:
139139
dependency: "direct main"
140140
description:
141141
name: flutter_svg
142-
sha256: c200fd79c918a40c5cd50ea0877fa13f81bdaf6f0a5d3dbcc2a13e3285d6aa1b
142+
sha256: cd57f7969b4679317c17af6fd16ee233c1e60a82ed209d8a475c54fd6fd6f845
143143
url: "https://pub.dev"
144144
source: hosted
145-
version: "2.0.17"
145+
version: "2.2.0"
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: fe7ab022b76f3034adc518fb6ea04a82387620e19977665ea18d30a1cf43442f
165+
sha256: bb2ce4590bc2667c96f318d68cac1b5a7987ec819351d32b1c987239a815e007
166166
url: "https://pub.dev"
167167
source: hosted
168-
version: "1.3.0"
168+
version: "1.5.0"
169169
http_parser:
170170
dependency: transitive
171171
description:
@@ -364,26 +364,26 @@ packages:
364364
dependency: "direct main"
365365
description:
366366
name: url_launcher
367-
sha256: "9d06212b1362abc2f0f0d78e6f09f726608c74e3b9462e8368bb03314aa8d603"
367+
sha256: f6a7e5c4835bb4e3026a04793a4199ca2d14c739ec378fdfe23fc8075d0439f8
368368
url: "https://pub.dev"
369369
source: hosted
370-
version: "6.3.1"
370+
version: "6.3.2"
371371
url_launcher_android:
372372
dependency: transitive
373373
description:
374374
name: url_launcher_android
375-
sha256: "6fc2f56536ee873eeb867ad176ae15f304ccccc357848b351f6f0d8d4a40d193"
375+
sha256: "0aedad096a85b49df2e4725fa32118f9fa580f3b14af7a2d2221896a02cd5656"
376376
url: "https://pub.dev"
377377
source: hosted
378-
version: "6.3.14"
378+
version: "6.3.17"
379379
url_launcher_ios:
380380
dependency: transitive
381381
description:
382382
name: url_launcher_ios
383-
sha256: "16a513b6c12bb419304e72ea0ae2ab4fed569920d1c7cb850263fe3acc824626"
383+
sha256: "7f2022359d4c099eea7df3fdf739f7d3d3b9faf3166fb1dd390775176e0b76cb"
384384
url: "https://pub.dev"
385385
source: hosted
386-
version: "6.3.2"
386+
version: "6.3.3"
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: "3ba963161bd0fe395917ba881d320b9c4f6dd3c4a233da62ab18a5025c85f1e9"
415+
sha256: "4bd2b7b4dc4d4d0b94e5babfffbca8eac1a126c7f3d6ecbc1a11013faa3abba2"
416416
url: "https://pub.dev"
417417
source: hosted
418-
version: "2.4.0"
418+
version: "2.4.1"
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: "44cc7104ff32563122a929e4620cf3efd584194eec6d1d913eb5ba593dbcf6de"
431+
sha256: a4f059dc26fc8295b5921376600a194c4ec7d55e72f2fe4c7d2831e103d461e6
432432
url: "https://pub.dev"
433433
source: hosted
434-
version: "1.1.18"
434+
version: "1.1.19"
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: "1b4b9e706a10294258727674a340ae0d6e64a7231980f9f9a3d12e4b42407aad"
447+
sha256: "557a315b7d2a6dbb0aaaff84d857967ce6bdc96a63dc6ee2a57ce5a6ee5d3331"
448448
url: "https://pub.dev"
449449
source: hosted
450-
version: "1.1.16"
450+
version: "1.1.17"
451451
vector_math:
452452
dependency: transitive
453453
description:
@@ -468,10 +468,10 @@ packages:
468468
dependency: transitive
469469
description:
470470
name: web
471-
sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
471+
sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
472472
url: "https://pub.dev"
473473
source: hosted
474-
version: "1.1.0"
474+
version: "1.1.1"
475475
webdriver:
476476
dependency: transitive
477477
description:
@@ -484,10 +484,10 @@ packages:
484484
dependency: transitive
485485
description:
486486
name: win32
487-
sha256: daf97c9d80197ed7b619040e86c8ab9a9dad285e7671ee7390f9180cc828a51e
487+
sha256: "66814138c3562338d05613a6e368ed8cfb237ad6d64a9e9334be3f309acfca03"
488488
url: "https://pub.dev"
489489
source: hosted
490-
version: "5.10.1"
490+
version: "5.14.0"
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.7.0-0 <4.0.0"
500+
dart: ">=3.8.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.5+1
3+
version: 2.4.5+2
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/compdfkit_flutter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'compdfkit_flutter'
7-
s.version = '2.4.5+1'
7+
s.version = '2.4.5+2'
88
s.summary = 'Flutter PDF Library by ComPDFKit'
99
s.description = <<-DESC
1010
A new Flutter plugin project.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: compdfkit_flutter
22
description: ComPDFKit for Flutter is a comprehensive SDK that allows you to quickly add PDF functionality to Android and iOS Flutter applications.
3-
version: 2.4.5+1
3+
version: 2.4.5+2
44
homepage: https://www.compdf.com
55
repository: https://github.com/ComPDFKit/compdfkit-pdf-sdk-flutter
66
issue_tracker: https://www.compdf.com/support

0 commit comments

Comments
 (0)