Versionsanteckningar

26.11.0

November 30, 2026

Editor

  • New Feature: Doconut now lets people edit Word (.docx) documents right in the browser. The new Editor plugin lays out every page on your server, so what people edit looks like the document itself: text and formatting, lists, tables, images, links, paragraph spacing and indents, find, and undo and redo. A table of contents can be updated from the current headings. Edited documents are saved as .docx or .pdf. Add it as a ready-made widget where users upload their own file, embed the full editor in your own page, or build your own interface on its HTTP endpoints; autosave and unsaved-changes callbacks let your application keep the work safe. The fonts it needs come inside the plugin, so there is nothing to install on the server. Available for .NET 8, .NET 6, .NET Standard 2.1 and .NET Framework 4.7.2 as Doconut.NET8.Editor, Doconut.NET6.Editor, Doconut.NETStandard.Editor and Doconut.NETFramework.Editor.
  • New Feature: Added hyperlink editing operations to the Editor - insertHyperlink, setHyperlink, and removeHyperlink - with full undo and redo support. Only http, https, and mailto URLs are allowed (other schemes return a 422 error), and the UI now shows link addresses on click, opens them with Ctrl+click, and provides Edit/Remove commands via right-click and a dedicated dialog.
  • New Feature: Added an Update Table of Contents operation in the Editor that rebuilds all tables of contents from the current headings and page numbers, with undo/redo support. The operation returns a 422 error when the document has no table of contents, and a toolbar and context‑menu command are provided.
  • Enhancement: Added paragraph formatting options to set spacing before and after, line spacing multiples (1, 1.15, 1.5, 2), and left, right, and first-line indents (including hanging indents) in the Editor, with undo/redo support and geometry reporting. Supported on .NET 8, .NET 6, .NET Standard 2.1, .NET Framework 4.7.2 and Linux.
  • New Feature: Added an autosave option (delayMs, save(document)) to the Editor core and React component, enabling automatic saving of the current .docx after a period of inactivity and suppressing the leave-page warning when the save succeeds. Also introduced an onAutosave callback with states (saving, saved, failed), a getDocument(format) method for retrieving the document without download, and extended the widget and mountDoconutEditor with onUnsaved and warnBeforeLeaving options; supported on .NET 8, .NET 6, .NET Standard 2.1, and .NET Framework 4.7.2.
  • Enhancement: Updated the Editor paste functionality to preserve bold, italic, underline and paragraph breaks by reading and sanitizing HTML content from the clipboard. The change drops unsupported styles, fonts, colors, links, images, tables and scripts, and is applied across .NET 8, .NET 6, .NET Standard 2.1 and .NET Framework 4.7.2 with a single undo step.
  • Enhancement: Added Ctrl+S (Cmd+S on macOS) shortcut to save the document - when autosave is enabled it saves immediately to the host, otherwise it downloads a .docx file, and the Save button tooltip now displays the shortcut. This behavior applies to .NET 8, .NET 6, .NET Standard 2.1 and .NET Framework 4.7.2, with documentation updated.
  • Enhancement: Added a Pages button to the toolbar that toggles the visibility of the page thumbnails rail, allowing users to hide the rail and expand the page area. The initial visibility is controlled by the showThumbnails option (default true) on the editor widget and React UI, supports .NET 8, .NET 6, .NET Standard 2.1, and .NET Framework 4.7.2, and includes aria-pressed accessibility support and updated documentation.
  • Enhancement: Added user feedback when clicking non-editable elements (header, footer, footnote, comment, text box, field) in the Editor. The caret now remains in place and a notice event provides a message to the screen and screen readers, indicating why the element cannot be edited, with support for .NET 8, .NET 6, .NET Standard 2.1 and .NET Framework 4.7.2.

Extractor Plugin

  • New Feature: The new Extractor plugin exports a document's content and metadata as structured JSON and as Markdown, ready for search indexes, data pipelines and AI applications. Headings, paragraphs, lists, tables, images, e-mail headers and attachments come out in reading order, each with its page and its position, so the viewer can go to the exact place and highlight it. It runs on your server and offline, with no AI model involved. Text a reader cannot see, such as hidden text, white-on-white text or hidden sheets and slides, is kept out of the output and counted, so it cannot slip hidden instructions to an AI model that reads the result. Use the ready-made widget, the HTTP endpoints or the DocumentExtractor class in C#. To read scanned pages, also install the OCR engine package. Available for .NET 8, .NET 6, .NET Standard 2.1 and .NET Framework 4.7.2 as Doconut.NET8.Extractor, Doconut.NET6.Extractor, Doconut.NETStandard.Extractor and Doconut.NETFramework.Extractor.

Search

  • New Feature: The viewer now finds and highlights text in scanned PDFs and images. Install the new OCR engine package for your framework (for example Doconut.NET8.Engines.Ocr); there is nothing to register in code, and it runs fully offline. It runs on Windows (x64 and x86) and on Linux x64. On Windows it needs the Microsoft Visual C++ 2015-2022 Redistributable.

Security

  • Bug Fix: The viewer shows the links inside documents again. Only web (http, https) and mail (mailto) addresses are opened, always in a new tab.
  • Bug Fix: AllowCopy and AllowSearch now apply consistently to Word, Excel, PowerPoint and every other format the viewer shows through PDF.
  • Bug Fix: The packages now depend on a version of System.Security.Cryptography.Pkcs without known security advisories.
  • Bug Fix: The documentation now explains that the session check for page requests is controlled by DoconutOptions.UnsafeMode: keep it false (the default) in production.
  • Bug Fix: Annotation, search, page, thumbnail and copy-text requests are validated more strictly, and invalid requests get a clear error instead of a server error. Pictures added to annotations from a web address have a size limit.
  • Documents can no longer make the server load outside resources: links resolved through <base href>, MHT Content-Location, linked pictures in .xlsx, linked video and sound in .pptx, CAD drawings and pictures referenced by path, and the Converter's own output steps now respect BaseConfig.AllowExternalResources like every other resource.
  • Behaviour change for relative resources: a resource referenced by a relative name (for example <img src="logo.png">) is no longer read from the server's folders. Embed the resource in the document, or set AllowExternalResources = true only for documents you trust.
  • Known issue with inline SVG: an HTML document with an inline <svg> that links an outside picture does not open when AllowExternalResources is false. Set AllowExternalResources = true only for documents you trust.

Converter

  • New Feature: Added support for retrieving supported conversion targets and document page count via the DocumentConverter API. New methods DocumentConverter.GetSupportedTargets(sourceExtension) returns available target formats, and DocumentConverter.GetPageCountAsync(source, sourceExtension, password) (including file-path overload) provides the page count, available on .NET 8, .NET 6, .NET Standard 2.1, and .NET Framework 4.7.2.
  • Enhancement: ConversionMetadata now has Creator and Producer fields, and metadata (Title, Author, Subject, Keywords, Creator, Producer) is now written to DOCX, ODT, RTF, XLSX, ODS, PPTX, ODP and HTML outputs as well. When no metadata is set, the output is unchanged.
  • New Feature: Added the ability to convert every page of a document to images in a single call, returning a ZIP archive with one image per page. The feature introduces AllPages (default false) and Pages options for image targets (PNG, JPEG, BMP, GIF, SVG) across all document families (Word, email, web documents, Excel sheets, PowerPoint slides, PDF, Project, Visio, CAD layouts/views, multi-page images, DICOM frames, Photoshop) and is supported on .NET 8, .NET 6, .NET Standard 2.1 and .NET Framework 4.7.2; using PageNumber together with AllPages or Pages, or on non-image targets, now results in an argument error.
  • Bug Fix: Every source format has its own conversion options again, through the ConversionOptions types and the ConvertAsync<TOptions> overloads. The default options give the same output as before, and Excel to TXT and CAD to JP2 and WEBP are available again.
  • Bug Fix: Fixed Converter endpoints to return HTTP 400 for password-protected documents and invalid input errors, providing the message "This document is password protected." for the former, while still returning HTTP 500 for unexpected failures.

CAD Converter

  • New Feature: The Converter now converts DWG, DXF and DGN drawings to vector DXF and DWF files (ConversionTarget.Dxf and ConversionTarget.Dwf).
  • Enhancement: Added two CAD converter options, PdfMargins and AutomaticLayoutScaling, for the V1 converter on .NET 8, .NET 6, .NET Standard 2.1, and .NET Framework 4.7.2. PdfMargins now creates a real page margin (default no margin) and AutomaticLayoutScaling is only applied when explicitly set, preserving previous behavior when unset.
  • Bug Fix: A new option, CadConversionOptions.PageSizing = "ViewerExport", sizes CAD pages as the viewer export did in 26.6.0, for applications that depend on that page size.
  • Bug Fix: CAD conversions running in parallel now complete reliably and give the same output as a single conversion, on .NET 8, .NET 6, .NET Standard 2.1 and .NET Framework 4.7.2.

Email Converter

  • Bug Fix: Fixed e-mail conversions omitting message headers (From, Sent, To, Subject) by re-including the header in the output as done by the viewer. Added EmailConversionOptions.IncludeHeader (default true) to control header inclusion and EmailConversionOptions.TimeZoneOffset to adjust the displayed sent date; applies to PDF, Word, text, HTML and image outputs across .NET 8, .NET 6, .NET Standard 2.1 and .NET Framework 4.7.2.
  • Bug Fix: Fixed an issue where converting the same email to PDF could produce different outputs when conversions ran in parallel on .NET 8, .NET 6, .NET Standard 2.1, and .NET Framework 4.7.2. The inconsistency was due to shared font state causing an extra space and a slight vertical offset in the last paragraph.

Image Converter

  • Bug Fix: Image and DICOM conversions running in parallel now complete reliably, in the Converter and in the viewer, on .NET 8, .NET 6, .NET Standard 2.1 and .NET Framework 4.7.2.

PDF Converter

  • Bug Fix: PDFs converted with PDF/A or with custom metadata now keep the default Creator and Producer (Doconut) when those fields are left unset, on .NET 8, .NET 6, .NET Standard 2.1 and .NET Framework 4.7.2. Values you set for Creator or Producer are kept as they are.
  • Bug Fix: Fixed an issue where the Converter plugin returned PDF to TXT output in UTF-16 LE without a byte order mark, causing NUL characters when interpreted as UTF-8. The output now uses the same UTF-8 encoding as other TXT outputs across .NET 8, .NET 6, .NET Standard 2.1, and .NET Framework 4.7.2.

Project Converter

  • Bug Fix: Fixed an issue where converting MS Project files on Linux failed because the engine could not locate the fallback font 'Generic Sans Serif'. The fix ensures the fallback font is resolved from system font folders or FontSettings, allowing conversions on .NET 8 and .NET 6 in minimal Linux containers.

Visio Converter

  • Bug Fix: Visio conversions running in parallel now give the same output every time, in the Converter and in the viewer, on .NET 8, .NET 6, .NET Standard 2.1 and .NET Framework 4.7.2.

Viewer

  • Bug Fix: Fixed an issue where the viewer lost its base path on the second View call when BasePath was not the root, causing malformed URLs like '/app//app/DocImage.axd'. The URL construction now uses the configured path on each View call, ignoring leading and trailing slashes, and works across all frameworks.
  • Bug Fix: Fixed an accessibility issue where the file input inside upload widget drop zones received focus as a second keyboard stop inside a button; the input now has tabindex="-1" and aria-hidden="true" so only the drop zone receives focus, and mouse behavior is unchanged.

Word Viewer

  • Bug Fix: WordConfig.FileEncoding and TxtConfig.FileEncoding take effect again, so a .txt file in an encoding other than UTF-8 (for example Windows-1252) shows the right characters when the encoding is set.

PowerPoint Viewer

  • Bug Fix: PowerPoint documents now open reliably in a 32-bit process after other documents have been opened, thanks to lower memory use, on .NET 8, .NET 6 and .NET Standard 2.1.

Annotations

  • Bug Fix: Fixed an issue where opening annotations while a page image is loading triggered a native browser alert "Invalid Parent!". The document viewer now stops the image onload when the annotation container is absent and logs a console warning instead. This applies to .NET 8, .NET 6, .NET Standard 2.1, and .NET Framework 4.7.2.
  • Bug Fix: Fixed multiple issues in the annotation bar where the Clear All function removed only the current page, vertical lines and arrows could not be drawn, arrow keys threw script errors when no annotation was selected, and native alert dialogs remained in the UI.

Signer Plugin

  • Bug Fix: Fixed an issue where signing a PDF in Certified mode with a signature or stamp image caused the certificate details (signer, date, reason, location, contact) to be rendered on top of the image in the exported PDF. The image now appears clean with its aspect ratio and position preserved, while the certificate information remains only in the digital signature metadata. Fixed for .NET 8, .NET 6, .NET Standard 2.1, and .NET Framework 4.7.2.
  • Bug Fix: The Signer sample for .NET Framework 4.7.2 is updated so it can be copied straight into your own project.

Platform Updates

  • Bug Fix: The first document opened in a 32-bit process on .NET 8, .NET 6 and .NET Standard 2.1 now opens reliably, with lower memory use at startup.
  • Bug Fix: Updated documentation and sample code to show builder.Services.AddDistributedMemoryCache() alongside AddSession() for ASP.NET Core hosts (net8, net6, .NET Standard 2.1), preventing startup crashes due to missing distributed cache.

.NET Framework 4.7.2

  • Bug Fix: Fixed an issue where .NET Framework 4.7.2 widgets failed to download on IIS application pools configured for the classic pipeline because Response.Headers threw a PlatformNotSupportedException. The handler now uses Response.AddHeader, which works in both classic and integrated pipeline modes for .NET Framework 4.7.2.
  • Bug Fix: A metadata request for a document that has none now gets the same answer from the middleware and from DocImageHandler.

.NET Dependencies

  • Enhancement: Updated the Doconut.NETStandard package metadata and readme to clearly state that the package runs on Windows only, and to advise Linux users to use Doconut.NET8 or Doconut.NET6 instead.

General

  • Bug Fix: Updated the widget documentation to correctly state that on .NET 8, .NET 6, and .NET Standard 2.1, unknown, expired, or invalid download tokens return HTTP 403 with the message "You Are Not Authorized To View This Page". The documentation also confirms that expired uploads return HTTP 404 on .NET Framework 4.7.2.
  • Bug Fix: The Converter and DICOM code samples in the documentation are updated and ready to copy.