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

1.21 release notes

RSS

Nutrient Web SDK 1.21 finishes the localization of the viewer: Every UI string now renders translated in all 32 locales, the component library’s strings became overridable, and right-to-left layout is applied for regional Arabic and Hebrew locales. It also records who created an annotation or comment, adds print-production rendering controls for overprinting and 100 percent K black, surfaces terminal page render failures through a new page.renderError event, and extends template population to XLSX and PPTX. See the changelog for full details.

Renamed message placeholders

Five messages had their named placeholders renamed to the positional {arg0} form. If you override any of these keys through NutrientViewer.I18n.messages, update your translation to use the new placeholder — a translation that still uses the old name renders the placeholder as literal text.

Message IDOld placeholderNew placeholder
formDesignerPopoverTitle{formFieldType}{arg0}
styleSectionLabel{formFieldType}{arg0}
formFieldNameExists{formFieldName}{arg0}
searchDocumentDescription{min}{arg0}
shapePointAdded{count}{arg0}
NutrientViewer.load({
// Before: named placeholder.
// I18n: { messages: { en: { searchDocumentDescription: "Type at least {min} characters" } } }
// After: positional placeholder.
I18n: {
messages: {
en: { searchDocumentDescription: "Type at least {arg0} characters" },
},
},
});

Only these five keys changed. Every other overridden message keeps its placeholders.

Complete UI localization

Parts of the interface — the comment editor toolbar among them — previously rendered in English in every non-English locale. Those strings are now translated across all 32 locales, along with the annotation blend mode labels in Thai and the Screen blend mode in Arabic. The English wording of several strings was corrected in the process, so a few labels changed: For example, the custom color dialog is now titled “New Color.”

The component library’s strings are now part of the SDK’s message catalog, which means they carry message IDs and can be customized through NutrientViewer.I18n.messages like any other string. For the full list of IDs, their English text, and the surface each one appears on, refer to the localization guide in the API reference.

A translation that can’t be formatted — because of invalid ICU MessageFormat syntax, for example — is ignored and the English text is used, as before. It now also logs a console warning naming the message key, the locale, and the formatter error, so a broken override is visible instead of silently falling back.

Right-to-left layout for regional locales

The UI now switches to a right-to-left layout whenever the active language is Arabic or Hebrew, not only for the exact ar and he tags. This covers three cases that previously stayed left-to-right: a regional locale such as ar-EG, a browser language of Arabic or Hebrew when no locale is configured, and a locale changed after load with setLocale().

Annotation and comment attribution

Annotation.createdBy and Comment.createdBy expose the user ID of the authenticated user that created the record:

const annotations = await instance.getAnnotations(0);
annotations.forEach((annotation) => {
console.log(annotation.createdBy);
});

Both properties are read-only and assigned by the backend — a locally set value is never sent. They’re available on server-backed deployments only, and are null for records created without an authenticated user, or when the server holds an author it can no longer resolve to an upstream user ID. Annotation.createdBy requires Instant synchronization against Document Engine 1.18.0 or later.

Two configuration options control rendering fidelity for prepress and soft-proofing workflows. Documents that don’t use CMYK color or overprinting are unaffected by either option.

NutrientViewer.load({
overprintPreview: NutrientViewer.OverprintPreview.OFF,
blackRendering: NutrientViewer.BlackRendering.PURE_BLACK,
// ...
});
  • overprintPreview controls whether the renderer simulates the overprinting a document uses, where overlapping inks print on top of each other instead of knocking each other out. It defaults to AUTO, which simulates overprinting when the document uses it; OFF disables the simulation.
  • blackRendering controls how exact 100 percent K-only CMYK black is rendered. It defaults to ACCURATE, which renders it as the dark charcoal Acrobat shows on screen; PURE_BLACK maps it to #000000 instead, which some print workflows prefer for checking black-only content.

In server-backed mode, both options require Document Engine 1.18.0 or later and are ignored by older servers.

Terminal page render failures

A page render that exhausts WebAssembly memory is retried once. When the retry also fails, the SDK now displays a localized page-level error and emits page.renderError, so your application can react instead of leaving the user with a blank page:

instance.addEventListener("page.renderError", (event) => {
if (event.error instanceof NutrientViewer.OutOfMemoryError) {
console.log(event.pageIndex, event.pageStillDisplaysContent);
}
});

pageStillDisplaysContent reports whether the page is still showing earlier, lower-resolution content when the event is emitted. The device itself can still have free memory — the failure is specific to the WebAssembly heap.

XLSX and PPTX template population

populateDocumentTemplate() now accepts XLSX and PPTX templates in addition to DOCX, and it returns the populated file as an ArrayBuffer.

XLSX templates process every worksheet and support placeholders, conditions, row loops, images, and typed number, date, percentage, and Boolean cells. Column loops and list expansion within a single cell aren’t supported, and formula references, structured table ranges, and defined names aren’t adjusted when row loops insert rows. PPTX templates support placeholders, loops, conditions, tables, and images on slides; slide masters, slide layouts, and speaker notes aren’t processed.

AI Assistant agent skills require descriptions

AI Assistant agent skills now require a description, which the agent uses to decide when to apply each skill.

Document Engine 1.5.6 or later can run this release. 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. Document-defined annotation tab order, Annotation.createdBy, overprintPreview, and blackRendering require Document Engine 1.18.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.20 release notes. We appreciate your feedback and contributions as we continue to enhance Nutrient Web SDK.