Skip to content

Commit 99ee890

Browse files
committed
New license, make benchmark work.
1 parent d47ae2d commit 99ee890

File tree

2 files changed

+37
-6
lines changed

2 files changed

+37
-6
lines changed

wasm/nutrient/benchmark.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,10 @@ const PAGE_HEIGHT = 841;
228228

229229
class Benchmark {
230230
async init() {
231-
Module.wasmBinary = await getBinary(wasmBinary);
232-
Module.annotations = await getBinary(annotations);
231+
Module.wasmBinary = await JetStream.getBinary(JetStream.preload.wasmBinary);
232+
Module.annotations = await JetStream.getBinary(
233+
JetStream.preload.annotations
234+
);
233235

234236
setupPrerequisites();
235237
injectRequiredGlobals(globalThis);
@@ -239,7 +241,10 @@ class Benchmark {
239241
if (!Module.initPSPDFKit) {
240242
await initializeNutrient();
241243

242-
Module.FS.writeFile("/document.pdf", await getBinary(pdfDocument));
244+
Module.FS.writeFile(
245+
"/document.pdf",
246+
await JetStream.getBinary(JetStream.preload.pdfDocument)
247+
);
243248
}
244249

245250
openDocument("/document.pdf");

wasm/nutrient/build/LICENSE.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
1-
## Nutrient Web SDK License Agreement
1+
# Nutrient JetStream Benchmark License
22

3-
Please refer to our website to read our evaluation license terms and conditions for Nutrient Web SDK:
3+
Copyright (c) 2025 PSPDFKit GmbH d/b/a Nutrient
44

5-
https://www.nutrient.io/legal/Nutrient_SDK_User_Evaluation_Subscription_Agreement
5+
## License Grant
6+
7+
Nutrient grants you a revocable, non-exclusive, non-transferable license to use this benchmark software solely for:
8+
- Performance benchmarking and testing
9+
- Execution environment performance comparisons
10+
- Performance analysis and research
11+
12+
## Restrictions
13+
14+
You may NOT:
15+
- Use this software for any commercial purpose
16+
- Incorporate this software into commercial applications
17+
- Reverse engineer, decompile, or derive source code (except disassembly solely for performance investigation)
18+
- Remove or alter copyright, trademark, or other proprietary notices
19+
- Transfer, assign, or sublicense your rights
20+
21+
## Acceptance
22+
23+
By downloading, copying, or using this software, you accept these terms and confirm you have authority to bind your organization to this license.
24+
Disclaimer
25+
26+
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTIES, EXPRESS OR IMPLIED, INCLUDING MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. NUTRIENT DISCLAIMS ALL LIABILITY FOR DAMAGES ARISING FROM USE OF THIS SOFTWARE.
27+
Third-Party Components
28+
29+
This software incorporates third-party libraries subject to their respective licenses. See: https://nutrient.io/acknowledgements
30+
31+
For commercial licensing or other uses not permitted above, contact Nutrient at [email protected].

0 commit comments

Comments
 (0)