This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/web/release-notes/1-18.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. 1.18 release notes

1.18 release notes

RSS

Nutrient Web SDK 1.18 adds a programmatic content editor API, an auto-resolve option for confirmation dialog slots, and snapping for measurement creation. It also improves loading, printing, and rendering performance; updates GdPicture and Immutable.js; simplifies the SDK’s TypeScript import surface; and ships a broad round of comments, forms, and stability fixes. See the changelog for full details.

Advanced content editor APIs

This release adds a programmatic content editor API so you can drive editing from your own code instead of only through the UI.

  • Create and delete blocks, enter create-mode, set the selection programmatically, and insert text.
  • Apply list formatting and introspect undo availability and fonts.
  • Set text styles — including native strikethrough — via instance.contentEditor.setTextStyle({ strikethrough }), and read the active style with getCurrentStyle().
  • Set paragraph alignment and line spacing via instance.contentEditor.setLayout(), reported through getCurrentStyle() and getBlock().
const instance = await NutrientViewer.load({
/* ...your existing configuration. */
});
// Apply strikethrough to the current selection.
instance.contentEditor.setTextStyle({ strikethrough: true });
// Set paragraph alignment and line spacing.
instance.contentEditor.setLayout({ alignment: "center", lineSpacing: 1.5 });

Auto-resolve for confirmation dialogs

Confirmation dialog slots now accept an additive autoResolve option that skips the prompt and answers it programmatically.

  • autoResolve accepts "accept" or "reject", which name the answer to the dialog rather than a button label, so "reject" is uniformly safe and never discards or deletes work.
  • When set, autoResolve takes precedence over a slot’s render and over the hide applied by the minimal UI preset.
  • It’s supported on annotations.deleteConfirm, contentEditor.exitConfirm, contentEditor.downloadConfirm, and reloadConfirm.
NutrientViewer.load({
// ...your existing configuration.
ui: {
contentEditor: {
// Download and continue without showing the prompt.
downloadConfirm: { autoResolve: "accept" },
},
annotations: {
// Keep the annotation instead of deleting it, with no prompt shown.
deleteConfirm: { autoResolve: "reject" },
},
},
});

Per slot, "accept"/"reject" resolve to:

Slot"accept""reject"
annotations.deleteConfirmDelete the annotationKeep it
contentEditor.exitConfirmSave and exitKeep editing (don’t discard)
contentEditor.downloadConfirmDownload and continueDismiss without downloading
reloadConfirmReload the documentKeep the current document

Snapping for measurement creation

Creating measurements is now more precise. Measurement tools snap while you draw, a snap indicator shows where the point will land, and you can hold a modifier key to temporarily bypass snapping when you need a freehand placement.

Simpler TypeScript imports

The SDK’s type declarations now use export default instead of export =, so importing the SDK no longer requires enabling the allowSyntheticDefaultImports or esModuleInterop compiler flags. A missing type definition for officeConversionSettings in the NutrientViewer.load() configuration object has also been added.

Form field changes

The multiselect option is removed from combo box form fields, and vertical alignment controls are removed from list box widgets in Form Creator.

In Standalone mode, radio buttons are deselectable when noToggleToOff is disabled. A deselected radio reports the value Off in both Standalone and Document Engine.

Document Engine 1.5.6 or later can run this release. However, instance.exportPDF() requires Document Engine 1.12.0 or later because earlier versions require legacy query-parameter authentication for the /pdf endpoint. In server-backed mode, using SearchType.WORD_BASED, removing password protection during PDF export, and removing annotation notes after an XFDF roundtrip require Document Engine 1.16.0 or later. See the Web SDK and Document Engine compatibility requirements.

For a complete list of changes, bug fixes, and improvements, refer to the changelog. For previous release notes, refer to the Web SDK 1.17 release notes. We appreciate your feedback and contributions as we continue to enhance Nutrient Web SDK.