Skip to content

Commit e9afc5f

Browse files
author
PSPDFKit
committed
Release 5.0.1
1 parent aa94d81 commit e9afc5f

File tree

7 files changed

+54
-52
lines changed

7 files changed

+54
-52
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 5.0.1 - 24 Jul 2025
2+
3+
- Update README.md files to include the latest rebranding changes for Nutrient Flutter SDK. (J#HYB-842)
4+
15
## 5.0.0 - 22 Jul 2025
26

37
- Rebrands the PSPDFKit Flutter SDK to Nutrient Flutter SDK. Now available as [`nutrient_flutter`](https://pub.dev/packages/nutrient_flutter) on pub.dev.(J#HG-682)

README.md

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,34 +85,48 @@ platform :ios, '16.0'
8585

8686
### Web Setup
8787

88-
The Nutrient Web SDK files are distributed as an archive that needs to be extracted manually:
88+
You can include the Nutrient Web SDK using either CDN or local installation:
89+
90+
#### Option 1: CDN (Recommended)
91+
92+
Add the following script to your `web/index.html` file:
93+
94+
```html
95+
<script src="https://cdn.cloud.pspdfkit.com/pspdfkit-web@1.1.0/nutrient-viewer.js"></script>
96+
```
97+
98+
**Note:** Replace `1.1.0` with the latest version of Nutrient Web SDK. Check the [latest releases][web changelog] for the current version.
99+
100+
#### Option 2: Local Installation
89101

90102
1. [Download Nutrient Web SDK][download web sdk]. The download will start immediately and save a `.tar.gz` archive like `PSPDFKit-Web-binary-<version>.tar.gz` to your computer.
91103

92104
2. Once downloaded, extract the archive and copy the **entire** contents of its `dist` folder to your project's `web/assets` folder.
93105

94106
3. Verify your `assets` folder contains:
95-
- `pspdfkit.js` file
96-
- `pspdfkit-lib` directory with library assets
107+
- `nutrient-viewer.js` file
108+
- `nutrient-viewer-lib` directory with library assets
97109

98110
4. Add the Nutrient library to your `web/index.html`:
99111

100112
```html
101-
<script src="assets/pspdfkit.js"></script>
113+
<script src="assets/nutrient-viewer.js"></script>
102114
```
103115

104116
Note: Your server must have the `Content-Type: application/wasm` MIME type configured for WebAssembly files.
105117

106118
## Sample Document Setup
107119

108120
1. Create a `PDFs` directory in your project root:
121+
109122
```bash
110123
mkdir PDFs
111124
```
112125

113126
2. Download our [sample PDF document][sample document] and save it as `Document.pdf` in the `PDFs` directory.
114127

115128
3. Add the assets directory to your `pubspec.yaml`:
129+
116130
```yaml
117131
flutter:
118132
assets:
@@ -135,7 +149,7 @@ void main() async {
135149
WidgetsFlutterBinding.ensureInitialized();
136150
137151
// Initialize the Nutrient SDK with your license key
138-
await Pspdfkit.initialize(
152+
await Nutrient.initialize(
139153
androidLicenseKey: 'YOUR_ANDROID_LICENSE_KEY',
140154
iosLicenseKey: 'YOUR_IOS_LICENSE_KEY',
141155
webLicenseKey: 'YOUR_WEB_LICENSE_KEY',
@@ -157,7 +171,7 @@ class MyApp extends StatelessWidget {
157171
158172
final bytes = await DefaultAssetBundle.of(context).load(assetPath);
159173
final list = bytes.buffer.asUint8List();
160-
final tempDir = await Pspdfkit.getTemporaryDirectory();
174+
final tempDir = await Nutrient.getTemporaryDirectory();
161175
final tempDocumentPath = '${tempDir.path}/$assetPath';
162176
final file = File(tempDocumentPath);
163177
@@ -173,8 +187,8 @@ class MyApp extends StatelessWidget {
173187
future: extractAsset(context, documentPath),
174188
builder: (context, snapshot) {
175189
if (snapshot.hasData) {
176-
/// PspdfkitWidget is a widget that displays a PDF document.
177-
return PspdfkitWidget(
190+
/// NutrientView is a widget that displays a PDF document.
191+
return NutrientView(
178192
documentPath: snapshot.data!,
179193
);
180194
} else if (snapshot.hasError) {
@@ -208,14 +222,15 @@ Visit our [Support Center][support] for help with the SDK.
208222

209223
## License
210224

211-
This project is licensed under the Nutrient Commercial License. See [LICENSE](LICENSE) for details.
225+
This project is licensed under the Nutrient Commercial License. See [LICENSE][license file] for details.
212226

213227
[documentation]: https://www.nutrient.io/guides/flutter/
214228
[example project]: https://github.com/PSPDFKit/pspdfkit-flutter
215229
[release notes]: https://www.nutrient.io/changelog/flutter
216230
[customization]: https://www.nutrient.io/guides/flutter/customize/
217231
[migration guide]: https://nutrient.io/guides/flutter/upgrade/
218232
[support]: https://support.nutrient.io
219-
[license]: https://github.com/PSPDFKit/pspdfkit-flutter/blob/main/LICENSE
220233
[download web sdk]: https://my.nutrient.io/download/web/latest
221-
[sample document]: https://www.nutrient.io/downloads/pspdfkit-web-demo.pdf
234+
[sample document]: https://www.nutrient.io/downloads/pspdfkit-web-demo.pdf
235+
[web changelog]: https://www.nutrient.io/changelog/web/
236+
[license file]: LICENSE

android/README.md

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,13 @@
1-
# PSPDFKit Flutter for Android
1+
# Nutrient Flutter for Android
22

33
## Requirements
44

5-
### Dependencies
5+
To build the Nutrient Flutter SDK and example project, you need:
66

7-
In order to build the PSPDFKit Flutter wrapper and example project, you need to prepare a couple of dependencies:
8-
9-
- The [latest stable version of Android Studio][https://developer.android.com/studio].
10-
- The [Android NDK][https://developer.android.com/studio/projects/install-ndk].
11-
- An [Android Virtual Device][https://developer.android.com/studio/run/managing-avds.html] or a hardware device.
12-
- The [latest stable version of PSPDFKit for Android][https://pspdfkit.com/guides/android/downloads/].
13-
- The [latest stable version of Flutter][https://flutter.dev/docs/get-started/install].
14-
- `local.properties` file
15-
16-
#### `local.properties`
17-
18-
Upon opening the Flutter example project for the first time inside Android Studio, the IDE will create a new `local.properties` file which should already contain paths to your local Android SDK installation. You will need to add another property `flutter.sdk` which points to your local flutter installation. Like this:
19-
20-
```local.properties
21-
sdk.dir=/path/to/your/android/sdk
22-
ndk.dir=/path/to/your/android/sdk/ndk-bundle
23-
flutter.sdk=/path/to/your/flutter/sdk
24-
```
7+
- The [latest stable version of Android Studio][android studio]
8+
- The [Android NDK][android ndk]
9+
- An [Android Virtual Device][android avd] or a hardware device
10+
- The [latest stable version of Flutter][flutter install]
2511

2612
## Setup
2713

@@ -31,15 +17,7 @@ See the [setup instructions](../README.md#android) in the main README.
3117

3218
Please take a look how to run our example project [here](../example/README.md#running-the-example-project).
3319

34-
## Troubleshooting
35-
36-
### Configuration on demand
37-
38-
This project uses Gradle 4.9+ which no longer supports on-demand configuration of projects. It might be that your Android Studio still has configuration on demand enabled, in which case syncing the Gradle files will yield an error like this:
39-
40-
```
41-
> Failed to apply plugin [id 'com.android.application']
42-
> Configuration on demand is not supported by the current version of the Android Gradle plugin since you are using Gradle version 4.6 or above. Suggestion: disable configuration on demand by setting org.gradle.configureondemand=false in your gradle.properties file or use a Gradle version less than 4.6.
43-
```
44-
45-
To resolve this, please go to your Android Studio preferences and remove the checkmark at `Configure on demand` inside `Build, Execution, Deployment -> Compiler`.
20+
[android studio]: https://developer.android.com/studio
21+
[android ndk]: https://developer.android.com/studio/projects/install-ndk
22+
[android avd]: https://developer.android.com/studio/run/managing-avds.html
23+
[flutter install]: https://flutter.dev/docs/get-started/install

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nutrient_example
22
description: Demonstrates how to use the Nutrient Flutter plugin.
3-
version: 5.0.0
3+
version: 5.0.1
44
homepage: https://nutrient.io/
55
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
66
environment:

ios/README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# PSPDFKit Flutter for iOS
1+
# Nutrient Flutter for iOS
22

33
## Requirements
44

5-
- The [latest stable version of Xcode][https://developer.apple.com/xcode/].
6-
- The [latest stable version of PSPDFKit for iOS][https://pspdfkit.com/guides/ios/downloads/].
7-
- The [latest stable version of Flutter][https://flutter.dev/docs/get-started/install].
8-
- The [latest stable version of CocoaPods][https://github.com/CocoaPods/CocoaPods/releases] (Update cocoapods with: `gem install cocoapods`).
5+
To build the Nutrient Flutter SDK and example project, you need:
6+
7+
- The [latest stable version of Xcode][xcode]
8+
- The [latest stable version of Flutter][flutter install]
9+
- [CocoaPods][cocoapods] (Install or update with: `gem install cocoapods`)
910

1011
## Setup
1112

@@ -14,3 +15,7 @@ See the [setup instructions](../README.md#ios) in the main README.
1415
## Example Project
1516

1617
Please take a look how to run our example project [here](../example/README.md#running-the-example-project).
18+
19+
[xcode]: https://developer.apple.com/xcode/
20+
[flutter install]: https://flutter.dev/docs/get-started/install
21+
[cocoapods]: https://github.com/CocoaPods/CocoaPods/releases

ios/nutrient_flutter.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
Pod::Spec.new do |s|
77
s.name = "nutrient_flutter"
8-
s.version = "5.0.0"
8+
s.version = "5.0.1"
99
s.homepage = "https://nutrient.io"
1010
s.documentation_url = "https://nutrient.io/guides/flutter"
1111
s.license = { type: "Commercial", file: "../LICENSE" }
@@ -22,6 +22,6 @@ Pod::Spec.new do |s|
2222
s.dependency("Instant", "14.10.0")
2323
s.swift_version = "5.0"
2424
s.platform = :ios, "16.0"
25-
s.version = "5.0.0"
25+
s.version = "5.0.1"
2626
s.pod_target_xcconfig = { "DEFINES_MODULE" => "YES", "SWIFT_INSTALL_OBJC_HEADER" => "NO" }
2727
end

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nutrient_flutter
22
description: A Flutter plugin providing a feature-rich PDF viewing and editing experience to your users with the powerful Nutrient PDF SDK.
3-
version: 5.0.0
3+
version: 5.0.1
44
homepage: https://nutrient.io/
55
repository: https://github.com/PSPDFKit/pspdfkit-flutter
66
issue_tracker: https://support.nutrient.io/hc/en-us/requests/new

0 commit comments

Comments
 (0)