Nutrient will automatically save changed, created, or deleted annotations and bookmarks on several occasions. Additionally, saving can always be triggered manually by calling save(), like this:

await Nutrient.save();

When using the NutrientView widget, you can also call save() on the PdfDocument instance, like this:

await pdfDocument.save();