We’re happy to announce the release of GroupDocs.Conversion for .NET v26.11, available as of November 2026. This release prepares documents for language models with the new DocLang formats, lets your code supply a password only for the documents that turn out to need one, and turns an email with its attachments into a single PDF. It also adds a .NET Framework 4.8 build and makes default fonts, font substitutes and containers with damaged or encrypted items behave as you would expect — 33 features, improvements, and bug fixes in total.
Highlights
Documents for language models: DocLang
A PDF or a Word file is laid out for people, not for a model. DocLang is an XML description of a document made for language models: it says what each element is — a heading, a paragraph, a table, a picture — where it sits on its page, and how the pieces connect. In 26.11 almost every document GroupDocs.Conversion reads converts to DocLang: PDF, Word, Excel, PowerPoint, email, HTML, images, CAD drawings and more.
Two DocLang file types are supported. DCLG is the bare markup, a single XML file. DCLX is an archive that also carries the document’s pictures and, if you ask for it, a picture of every page — useful when a model should look at the page as well as read it:
using (Converter converter = new Converter("sample.pdf"))
{
DocLangConvertOptions options = new DocLangConvertOptions
{
IncludePageImages = true
};
converter.Convert("converted.dclx", options);
}
IncludeLocations (on by default) controls whether element positions are written, and PageNumber, PagesCount and Pages pick the pages to convert. DocLang also works the other way: a DCLG or DCLX document converts to PDF, Word, HTML, images and every other format a Word document converts to. DocLang conversions run on .NET Framework 4.6.2 and 4.8 and on .NET 6, 8 and 10.
Passwords only when a document needs one
You rarely know in advance which file in a batch is protected — least of all an attachment of an email or a file inside a ZIP. In 26.11 the load options callback is asked once more when a document fails to load because its password is missing or wrong. LoadContext.Attempt is then 2, LoadFailure says what went wrong, and FailedLoadOptions holds a copy of the options that failed. Set the password on them through the new IPasswordLoadOptions interface and return them, and the document is loaded again:
Func<LoadContext, LoadOptions> getLoadOptions = loadContext =>
{
IPasswordLoadOptions failedOptions = loadContext.FailedLoadOptions as IPasswordLoadOptions;
if (loadContext.Attempt < 2 || failedOptions == null)
{
return null;
}
failedOptions.Password = AskForPassword(loadContext.SourceFileName);
return (LoadOptions)failedOptions;
};
using (Converter converter = new Converter("sample_with_password.docx", getLoadOptions))
{
converter.Convert("converted.pdf", new PdfConvertOptions());
}
The same callback covers every attachment, mailbox item and ZIP, RAR or 7z entry inside the document; for an archive entry, the password you return applies to that entry only. The second call also comes when a format is not supported, the content is damaged, or a CAD layout selection matches no sheet of the drawing, so you can change other options too. Each document is asked again at most once.
One PDF for an email and its attachments
Archiving an email usually means one file per attachment. With EmailLoadOptions.MergeAttachments, an EML, EMLX or MSG message and its attachments become one PDF, with a bookmark for each part. PDF options such as PDF/A, a password or page selection apply to the merged PDF:
using (var converter = new Converter("message.eml",
context => context.HierarchyLevel == 0 ? new EmailLoadOptions { MergeAttachments = true } : null))
{
converter.Convert("message.pdf", new PdfConvertOptions());
}
Fonts you configured, used everywhere
DefaultFont and font substitutes now apply where they were ignored: email conversions to PDF, PDF/UA, images, XPS, PS, PCL, SVG and presentations, and every PDF document in a run, not only the first one. Fonts in TrueType collections and in your font directories are found, and a spreadsheet whose default font name has 32 or more characters converts. When the default font you set is not available, ConversionEvents.OnFontSubstituted now tells you instead of the output silently using another font.
Containers that convert to the end
A damaged image attachment, or an encrypted, wrong-password or damaged entry in a ZIP, RAR or 7z archive, no longer stops the rest of the email, mailbox or archive from converting: the item is reported to OnDocumentFailed and skipped. Contained documents are no longer skipped after the first nested container, the PST and OST Folder option is respected, and a Depth you return for a contained archive or email limits how deep its own contents go.
.NET Framework 4.8 build
The packages now include a build for .NET Framework 4.8; projects that target 4.8 or 4.8.1 get it from NuGet automatically. Microsoft ends support for .NET Framework 4.6.2 on January 12, 2027. We will keep shipping the 4.6.2 build as deprecated for a few months after that date and then remove it, so we recommend moving .NET Framework projects to 4.8.
What’s new in this release
- [Feature] Embedding .eml attachments into one converted Pdf document (CONVERSIONNET-7493)
- [Feature] Ask the load options callback again when a document fails to load, so a password can be supplied when it is needed (CONVERSIONNET-8733)
- [Feature] Convert Word documents to DocLang (CONVERSIONNET-8756)
- [Feature] Add DocLang as a conversion target for PDF, spreadsheet, presentation, email and other documents (CONVERSIONNET-8757)
- [Feature] Add DocLang as a conversion source for PDF, Word, image and other formats (CONVERSIONNET-8758)
- [Improvement] Report a damaged password-protected ZIP or RAR entry as damaged instead of as a wrong password (CONVERSIONNET-8725)
- [Improvement] Add .NET Framework 4.8 (net48) target (CONVERSIONNET-8729)
- [Improvement] Let the load options returned for a contained document limit how deep its contents are converted (CONVERSIONNET-8731)
- [Improvement] Ask the load options callback again when a CAD layout selection matches no sheet of the drawing (CONVERSIONNET-8734)
- [Improvement] Fix SVG conversions requesting external resources that their target format does not use (CONVERSIONNET-8737)
- [Improvement] Report an unavailable default font instead of silently ignoring it (CONVERSIONNET-8741)
- [Bug] Html to Docx conversion issues #2 (CONVERSIONNET-8296)
- [Bug] DWFX to PDF fails with “Expected positive width value. (Parameter ‘width’)” (CONVERSIONNET-8611)
- [Bug] Fix PST and OST conversions ignoring the Folder load option (CONVERSIONNET-8713)
- [Bug] Fix owned documents being skipped after the first nested container (CONVERSIONNET-8714)
- [Bug] Fix email, mailbox and archive conversion skipping contained documents and ignoring the Depth limit (CONVERSIONNET-8720)
- [Bug] Fix a damaged image attachment stopping the conversion of the rest of an email, mailbox or archive (CONVERSIONNET-8721)
- [Bug] Fix an encrypted or wrong-password archive entry stopping the conversion of the rest of the archive (CONVERSIONNET-8722)
- [Bug] Fix a damaged archive entry stopping the conversion of the rest of the archive (CONVERSIONNET-8723)
- [Bug] Fix an encrypted or damaged 7z entry stopping the conversion of the rest of the archive (CONVERSIONNET-8724)
- [Bug] Fix WebLoadOptions comparing as equal when their header or credentials callbacks differ (CONVERSIONNET-8726)
- [Bug] Fix the load options callback being called twice for a document and not seeing its detected format (CONVERSIONNET-8732)
- [Bug] Fix CGM document info reporting no creation date (CONVERSIONNET-8735)
- [Bug] Use a default font supplied through FontDirectories when rendering PDF documents (CONVERSIONNET-8742)
- [Bug] Use the default font for missing fonts when converting emails to PDF (CONVERSIONNET-8744)
- [Bug] Apply the default font and font substitutes when converting emails to images, XPS, PS, PCL, SVG and presentations (CONVERSIONNET-8745)
- [Bug] Apply each conversion’s own default font, font substitutes and font notifications when converting PDF documents (CONVERSIONNET-8746)
- [Bug] Convert spreadsheets when the default font name is 32 characters or longer (CONVERSIONNET-8747)
- [Bug] Apply font substitutes to the email body when converting emails to PDF (CONVERSIONNET-8748)
- [Bug] Use default fonts and font substitutes from TrueType collections when converting emails to PDF (CONVERSIONNET-8750)
- [Bug] Use default fonts and font substitutes when converting emails to PDF/UA (CONVERSIONNET-8751)
- [Bug] Use fonts from the font directories when converting HTML and emails to PDF/UA (CONVERSIONNET-8752)
- [Bug] Write PNG, JPG and other raster formats instead of TIFF when converting a single DjVu page (CONVERSIONNET-8753)
Public API changes
New API
DocLangFileType(Dclg,Dclx),DocLangConvertOptions(IncludeLocations,IncludePageImages,PageNumber,PagesCount,Pages),DocLangLoadOptions(Format) andDocLangDocumentInfo.LoadContext.Attempt,LoadContext.LoadFailureandLoadContext.FailedLoadOptions.IPasswordLoadOptions(Password), implemented byCompressionLoadOptions,NoteLoadOptions,PdfLoadOptions,PresentationLoadOptions,SpreadsheetLoadOptionsandWordProcessingLoadOptions.EmailLoadOptions.MergeAttachments.
⚠️ Check before you upgrade
- Load options callback: it is now called once per load attempt, after the document’s format is detected, instead of before and again after detection. Results do not change unless your callback returns different options on its second call; if it counts its calls, review it.
- Archive entries: the callback is now also called for a ZIP, RAR or 7z entry that could not be extracted, with
SourceStreamset tonull. CheckSourceStreambefore you read it. OnDocumentFailedreports the final outcome only, so it is no longer raised for a document that loads on the second attempt.- Damaged archive entries: a damaged password-protected ZIP or RAR entry is reported with
CorruptOrDamagedFileExceptioninstead ofIncorrectPasswordException. Depthof contained containers: options you return for an archive or email inside another container now limit how deep its contents go, including their defaultDepth.WebLoadOptionsequality: two options that differ only inConfigureHeadersorCredentialsProviderare no longer equal.- DjVu to raster images: converting a single DjVu page to PNG, JPG or another raster format now writes that format instead of TIFF.
The migration notes and the release notes list every change with the exact exception messages.
How to get the update
NuGet
Upgrade to the latest GroupDocs.Conversion package via NuGet: GroupDocs.Conversion 26.11.0
dotnet add package GroupDocs.Conversion --version 26.11.0
Direct download
Download assemblies from the GroupDocs.Conversion for .NET 26.11 page
Resources
- Full Release Notes
- Documentation
- Convert to and from DocLang – formats, conversions and convert options
- Load password-protected document – supply the password only when a document needs it
- Load email document with options – merge an email and its attachments into one PDF
- Migration notes – migrating to 26.11
- System requirements – the .NET Framework 4.8 build
- GitHub examples
- Free Support Forum