You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff 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
+
1
5
## 5.0.0 - 22 Jul 2025
2
6
3
7
- 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)
**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
89
101
90
102
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.
91
103
92
104
2. Once downloaded, extract the archive and copy the **entire** contents of its `dist` folder to your project's `web/assets` folder.
93
105
94
106
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
97
109
98
110
4. Add the Nutrient library to your `web/index.html`:
99
111
100
112
```html
101
-
<scriptsrc="assets/pspdfkit.js"></script>
113
+
<scriptsrc="assets/nutrient-viewer.js"></script>
102
114
```
103
115
104
116
Note: Your server must have the `Content-Type: application/wasm` MIME type configured for WebAssembly files.
105
117
106
118
## Sample Document Setup
107
119
108
120
1. Create a `PDFs` directory in your project root:
121
+
109
122
```bash
110
123
mkdir PDFs
111
124
```
112
125
113
126
2. Download our [sample PDF document][sample document] and save it as `Document.pdf` in the `PDFs` directory.
114
127
115
128
3. Add the assets directory to your `pubspec.yaml`:
129
+
116
130
```yaml
117
131
flutter:
118
132
assets:
@@ -135,7 +149,7 @@ void main() async {
135
149
WidgetsFlutterBinding.ensureInitialized();
136
150
137
151
// Initialize the Nutrient SDK with your license key
138
-
await Pspdfkit.initialize(
152
+
await Nutrient.initialize(
139
153
androidLicenseKey: 'YOUR_ANDROID_LICENSE_KEY',
140
154
iosLicenseKey: 'YOUR_IOS_LICENSE_KEY',
141
155
webLicenseKey: 'YOUR_WEB_LICENSE_KEY',
@@ -157,7 +171,7 @@ class MyApp extends StatelessWidget {
157
171
158
172
final bytes = await DefaultAssetBundle.of(context).load(assetPath);
159
173
final list = bytes.buffer.asUint8List();
160
-
final tempDir = await Pspdfkit.getTemporaryDirectory();
174
+
final tempDir = await Nutrient.getTemporaryDirectory();
161
175
final tempDocumentPath = '${tempDir.path}/$assetPath';
162
176
final file = File(tempDocumentPath);
163
177
@@ -173,8 +187,8 @@ class MyApp extends StatelessWidget {
173
187
future: extractAsset(context, documentPath),
174
188
builder: (context, snapshot) {
175
189
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(
178
192
documentPath: snapshot.data!,
179
193
);
180
194
} else if (snapshot.hasError) {
@@ -208,14 +222,15 @@ Visit our [Support Center][support] for help with the SDK.
208
222
209
223
## License
210
224
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.
To build the Nutrient Flutter SDK and example project, you need:
6
6
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]
25
11
26
12
## Setup
27
13
@@ -31,15 +17,7 @@ See the [setup instructions](../README.md#android) in the main README.
31
17
32
18
Please take a look how to run our example project [here](../example/README.md#running-the-example-project).
33
19
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`.
- 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`)
9
10
10
11
## Setup
11
12
@@ -14,3 +15,7 @@ See the [setup instructions](../README.md#ios) in the main README.
14
15
## Example Project
15
16
16
17
Please take a look how to run our example project [here](../example/README.md#running-the-example-project).
0 commit comments