Skip to content

Commit ec01ca0

Browse files
committed
Release 5.3.0
1 parent 2566659 commit ec01ca0

File tree

232 files changed

+14846
-2865
lines changed

Some content is hidden

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

232 files changed

+14846
-2865
lines changed

.metadata

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "d7b523b356d15fb81e7d340bbe52b47f93937323"
8+
channel: "stable"
9+
10+
project_type: plugin
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
17+
base_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
18+
- platform: android
19+
create_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
20+
base_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
21+
- platform: ios
22+
create_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
23+
base_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
24+
- platform: macos
25+
create_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
26+
base_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
27+
28+
# User provided section
29+
30+
# List of Local paths (relative to this file) that should be
31+
# ignored by the migrate tool.
32+
#
33+
# Files that are not part of the templates will be ignored by default.
34+
unmanaged_files:
35+
- 'lib/main.dart'
36+
- 'ios/Runner.xcodeproj/project.pbxproj'

ACKNOWLEDGEMENTS.md

Lines changed: 310 additions & 25 deletions
Large diffs are not rendered by default.

BINDINGS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Bindings Documentation
2+
3+
This file has moved. See [`docs/bindings.md`](docs/bindings.md) for the latest
4+
Android and iOS binding regeneration instructions.

CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
1+
## 5.3.0 — 22 Jan 2026
2+
3+
- Adds a headless document API for opening and manipulating PDF documents without displaying a viewer. (J#HYB-931)
4+
- Adds programmatic bookmark management APIs to `PdfDocument` for creating, reading, updating, and deleting bookmarks. (J#HYB-932)
5+
- Adds document dirty state APIs for tracking unsaved changes with cross-platform `hasUnsavedChanges()` and platform-specific methods. (J#HYB-934)
6+
- Adds the `iOSFileConflictResolution` configuration option to handle file conflicts when a PDF is modified externally on iOS. (J#HYB-933)
7+
- Adds the `CustomStampItem` class for configuring custom stamps with colors (iOS) and subtitles (iOS/Android).
8+
- Improves the annotation properties API (J#HYB-935):
9+
- Fixes the text annotation font color being reset to black when updating other properties like opacity (Web).
10+
- Fixes the ink annotation line width property not being applied correctly.
11+
- Fixes the `pspdfkit/undefined` type exception when adding or removing text annotations.
12+
- Fixes `getAnnotationProperties` returning null for valid annotations.
13+
- Makes `Annotation` class properties immutable; use `AnnotationProperties` and `AnnotationManager` for updates.
14+
- Updates to Nutrient iOS SDK 26.4.0.
15+
- Updates to Nutrient Android SDK 10.10.1.
16+
- Fixes an Android issue where the PDF view was hidden behind the keyboard when editing form fields. (J#HYB-929)
17+
118
## 5.2.0 - 13 Oct 2025
219

320
- Introduces `AnnotationProperties` class to manage and update annotation properties such as color, opacity, line width, flags, and custom data. (J#HYB-879)
421
- Updates Android SDK configuration (minSdk 24, compileSdk/targetSdk 36) to support Nutrient Android SDK 10.7.0.
5-
- Updates iOS deployment target to 16 to support Nutrient iOS SDK 14.12.0.
22+
- Updates iOS deployment target to 16 to support Nutrient iOS SDK 26.0.0.
623
- Updates AI Assistant implementation to use new `createAiAssistant` API with `AiAssistantProvider` interface support. (J#HYB-886)
724
- Fixes issue where getPageInfo throws an error if not page labels are set on Android. (J#HYB-882)
825
- Fixes issue where updating annotation flags results into unexpected behavior. (J#HYB-880,J#HYB-879)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
All items and source code Copyright © 2010-2025 PSPDFKit GmbH.
1+
All items and source code Copyright © 2010-2026 PSPDFKit GmbH.
22

33
PSPDFKit is a commercial product and requires a license to be used.
44

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ class MyApp extends StatelessWidget {
215215
- [Release Notes][release notes]
216216
- [Customization][customization]
217217
- [Migration Guide][migration guide]
218+
- [Headless Document API](documentation/headless-document-api-guide.md) - Open documents without a viewer for batch processing
219+
- [Dirty State Tracking](documentation/dirty-state-tracking-guide.md) - Track unsaved changes across platforms
218220

219221
## Support
220222

analysis_options.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright © 2019-2025 PSPDFKit GmbH. All rights reserved.
1+
# Copyright © 2019-2026 PSPDFKit GmbH. All rights reserved.
22
#
33
# THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
44
# AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
@@ -15,7 +15,6 @@ analyzer:
1515
invalid_assignment: error
1616
missing_return: error
1717
dead_code: warning
18-
# avoid_print: false
1918

2019
linter:
2120
rules:
@@ -24,5 +23,3 @@ linter:
2423
- sort_child_properties_last
2524
- unawaited_futures
2625
- use_full_hex_values_for_flutter_colors
27-
28-

android/build.gradle

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright © 2018-2025 PSPDFKit GmbH. All rights reserved.
2+
* Copyright © 2018-2026 PSPDFKit GmbH. 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 PSPDFKIT LICENSE AGREEMENT.
@@ -19,13 +19,13 @@ buildscript {
1919
}
2020
}
2121

22-
group 'com.pspdfkit.flutter.pspdfkit'
23-
version pspdfkitFlutterVersion
22+
group 'io.nutrient.nutrient_flutter'
23+
version nutrientFlutterVersion
2424

2525
rootProject.allprojects {
2626
repositories {
2727
maven {
28-
url pspdfkitMavenUrl
28+
url nutrientMavenUrl
2929
}
3030
google()
3131
mavenCentral()
@@ -36,7 +36,7 @@ apply plugin: 'com.android.library'
3636
apply plugin: 'kotlin-android'
3737

3838
android {
39-
namespace "com.pspdfkit.flutter.pspdfkit"
39+
namespace "io.nutrient.nutrient_flutter"
4040

4141
compileSdk androidCompileSdkVersion
4242

@@ -61,9 +61,11 @@ android {
6161

6262
dependencies {
6363
implementation 'androidx.appcompat:appcompat:1.7.1'
64-
implementation "io.nutrient:$pspdfkitMavenModuleName:$pspdfkitVersion"
64+
implementation "io.nutrient:$nutrientMavenModuleName:$nutrientVersion"
6565
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
6666
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
67+
// Fragment support for FFI-based platform views
68+
implementation "androidx.fragment:fragment-ktx:1.8.9"
6769
implementation "androidx.compose.material:material:1.8.3"
6870
implementation "androidx.constraintlayout:constraintlayout:2.2.1"
6971
implementation "androidx.constraintlayout:constraintlayout-compose:1.1.1"

android/config.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright © 2018-2025 PSPDFKit GmbH. All rights reserved.
2+
* Copyright © 2018-2026 PSPDFKit GmbH. 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 PSPDFKIT LICENSE AGREEMENT.
@@ -31,17 +31,17 @@ if (flutterRoot == null) {
3131
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
3232
}
3333

34-
ext.pspdfkitMavenUrl = localProperties.getProperty('pspdfkit.mavenUrl')
35-
if (pspdfkitMavenUrl == null || pspdfkitMavenUrl == '') {
36-
ext.pspdfkitMavenUrl = 'https://my.nutrient.io/maven/'
34+
ext.nutrientMavenUrl = localProperties.getProperty('pspdfkit.mavenUrl')
35+
if (nutrientMavenUrl == null || nutrientMavenUrl == '') {
36+
ext.nutrientMavenUrl = 'https://my.nutrient.io/maven/'
3737
}
3838

39-
ext.pspdfkitVersion = localProperties.getProperty('pspdfkit.version')
40-
if (pspdfkitVersion == null || pspdfkitVersion == '') {
41-
ext.pspdfkitVersion = '10.7.0'
39+
ext.nutrientVersion = localProperties.getProperty('pspdfkit.version')
40+
if (nutrientVersion == null || nutrientVersion == '') {
41+
ext.nutrientVersion = '10.10.1'
4242
}
4343

44-
ext.pspdfkitMavenModuleName = 'nutrient'
44+
ext.nutrientMavenModuleName = 'nutrient'
4545

4646
// Get our library version from the top level pubspec.yaml file.
4747
def pubspecFilePath = '../pubspec.yaml'
@@ -50,7 +50,7 @@ if (!pubspecFile.exists()) {
5050
throw new GradleException("'pubspec.yaml' file not found. Expected at the top level of the Flutter repository.")
5151
}
5252
def pubspecYaml = new Yaml().load(pubspecFile.newInputStream())
53-
ext.pspdfkitFlutterVersion = pubspecYaml.version
53+
ext.nutrientFlutterVersion = pubspecYaml.version
5454

5555
ext.androidCompileSdkVersion = 36
5656
ext.androidMinSdkVersion = 24

android/settings.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
2-
* Copyright © 2018-2025 PSPDFKit GmbH. All rights reserved.
2+
* Copyright © 2018-2026 PSPDFKit GmbH. 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 PSPDFKIT LICENSE AGREEMENT.
66
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
77
* This notice may not be removed from this file.
88
*/
9-
rootProject.name = 'pspdfkit-flutter'
9+
rootProject.name = 'nutrient_flutter'

0 commit comments

Comments
 (0)