GroupDocs.Conversion for .NET 26.11 Release Notes
There are 33 features, improvements, and bug fixes in this release.
This release adds DocLang, an XML description of a document made for language models, as both a conversion target and a source, and lets the load options callback answer again when a document fails to load, so a password can be supplied only for the documents that need one. It also merges an email and its attachments into one PDF, adds a .NET Framework 4.8 build, reports an unavailable default font instead of ignoring it, and fixes default fonts and font substitutes in email and PDF conversions, archives, emails and mailboxes that stopped at a damaged or encrypted item, and HTML to DOCX icons merged into one picture.
Full list of changes in this release
| Key | Category | Summary |
|---|---|---|
| CONVERSIONNET-7493 | Feature | Embedding .eml attachments into one converted Pdf document |
| CONVERSIONNET-8733 | Feature | Ask the load options callback again when a document fails to load, so a password can be supplied when it is needed |
| CONVERSIONNET-8756 | Feature | Convert Word documents to DocLang |
| CONVERSIONNET-8757 | Feature | Add DocLang as a conversion target for PDF, spreadsheet, presentation, email and other documents |
| CONVERSIONNET-8758 | Feature | Add DocLang as a conversion source for PDF, Word, image and other formats |
| CONVERSIONNET-8725 | Improvement | Report a damaged password-protected ZIP or RAR entry as damaged instead of as a wrong password |
| CONVERSIONNET-8729 | Improvement | Add .NET Framework 4.8 (net48) target |
| CONVERSIONNET-8731 | Improvement | Let the load options returned for a contained document limit how deep its contents are converted |
| CONVERSIONNET-8734 | Improvement | Ask the load options callback again when a CAD layout selection matches no sheet of the drawing |
| CONVERSIONNET-8737 | Improvement | Fix SVG conversions requesting external resources that their target format does not use |
| CONVERSIONNET-8741 | Improvement | Report an unavailable default font instead of silently ignoring it |
| CONVERSIONNET-8296 | Bug | Html to Docx conversion issues #2 |
| CONVERSIONNET-8611 | Bug | DWFX to PDF fails with “Expected positive width value. (Parameter ‘width’)” |
| CONVERSIONNET-8713 | Bug | Fix PST and OST conversions ignoring the Folder load option |
| CONVERSIONNET-8714 | Bug | Fix owned documents being skipped after the first nested container |
| CONVERSIONNET-8720 | Bug | Fix email, mailbox and archive conversion skipping contained documents and ignoring the Depth limit |
| CONVERSIONNET-8721 | Bug | Fix a damaged image attachment stopping the conversion of the rest of an email, mailbox or archive |
| CONVERSIONNET-8722 | Bug | Fix an encrypted or wrong-password archive entry stopping the conversion of the rest of the archive |
| CONVERSIONNET-8723 | Bug | Fix a damaged archive entry stopping the conversion of the rest of the archive |
| CONVERSIONNET-8724 | Bug | Fix an encrypted or damaged 7z entry stopping the conversion of the rest of the archive |
| CONVERSIONNET-8726 | Bug | Fix WebLoadOptions comparing as equal when their header or credentials callbacks differ |
| CONVERSIONNET-8732 | Bug | Fix the load options callback being called twice for a document and not seeing its detected format |
| CONVERSIONNET-8735 | Bug | Fix CGM document info reporting no creation date |
| CONVERSIONNET-8742 | Bug | Use a default font supplied through FontDirectories when rendering PDF documents |
| CONVERSIONNET-8744 | Bug | Use the default font for missing fonts when converting emails to PDF |
| CONVERSIONNET-8745 | Bug | Apply the default font and font substitutes when converting emails to images, XPS, PS, PCL, SVG and presentations |
| CONVERSIONNET-8746 | Bug | Apply each conversion’s own default font, font substitutes and font notifications when converting PDF documents |
| CONVERSIONNET-8747 | Bug | Convert spreadsheets when the default font name is 32 characters or longer |
| CONVERSIONNET-8748 | Bug | Apply font substitutes to the email body when converting emails to PDF |
| CONVERSIONNET-8750 | Bug | Use default fonts and font substitutes from TrueType collections when converting emails to PDF |
| CONVERSIONNET-8751 | Bug | Use default fonts and font substitutes when converting emails to PDF/UA |
| CONVERSIONNET-8752 | Bug | Use fonts from the font directories when converting HTML and emails to PDF/UA |
| CONVERSIONNET-8753 | Bug | Write PNG, JPG and other raster formats instead of TIFF when converting a single DjVu page |
Major Features
DocLang conversions: PDF, Word-processing, spreadsheet, presentation, email, web, image, CAD and most other documents convert to DocLang markup (DCLG) or a DocLang archive (DCLX), with element locations and optional page pictures, and DocLang documents convert back to PDF, Word, HTML, images and every other format a Word document converts to. DocLang is available on .NET Framework 4.6.2 and 4.8 and on .NET 6, 8 and 10.
Passwords when they are needed: the load options callback is asked once more when a document fails to load because a password is missing or wrong, its format is not supported or its content is damaged. Return the failed options with a password to load the document again, for the main document and for every attachment, mailbox item and ZIP, RAR or 7z entry inside it.
One PDF for an email and its attachments:
EmailLoadOptions.MergeAttachmentsmerges the body of an EML, EMLX or MSG message and its attachments into one PDF with a bookmark per part..NET Framework 4.8 build: the packages include a build for .NET Framework 4.8. Microsoft ends support for .NET Framework 4.6.2 on January 12, 2027.
Fonts: the default font and font substitutes now apply to email, PDF and PDF/UA conversions where they were ignored, fonts from TrueType collections and font directories are used, and an unavailable default font is reported through
OnFontSubstituted.Containers that convert to the end: a damaged image attachment, an encrypted, wrong-password or damaged ZIP, RAR or 7z entry no longer stops the conversion of the rest of the email, mailbox or archive, and contained documents are no longer skipped after the first nested container.
Public API and backward incompatible changes
1. DocLang conversions
New public types:
- DocLangFileType in
GroupDocs.Conversion.FileTypes, with Dclg (bare DocLang markup) and Dclx (a DocLang archive that also holds the document’s pictures and, optionally, a picture of every page). - DocLangConvertOptions in
GroupDocs.Conversion.Options.Convert:Format(defaultDocLangFileType.Dclx),IncludeLocations(defaulttrue),IncludePageImages(defaultfalse),PageNumber,PagesCountandPages. - DocLangLoadOptions in
GroupDocs.Conversion.Options.Load, withFormat. - DocLangDocumentInfo in
GroupDocs.Conversion.Contracts. ItsPagesCountis the page count of the Word document built from the DocLang document.
using (Converter converter = new Converter("sample.pdf"))
{
DocLangConvertOptions options = new DocLangConvertOptions
{
IncludePageImages = true
};
converter.Convert("converted.dclx", options);
}
IncludePageImages with Format = DocLangFileType.Dclg fails the conversion with InvalidConvertOptionsException:
DocLangConvertOptions.IncludePageImages cannot be combined with the dclg format: bare DocLang markup cannot hold page pictures. Use the dclx format for page pictures.
A DocLang source that is not valid DocLang 0.9 is refused with CorruptOrDamagedFileException, and external resources a DocLang document names are never loaded. DocLang is not available in GroupDocs.Conversion.LowCode.
2. The load options callback is asked again after a failed load
New in GroupDocs.Conversion, on LoadContext:
- Attempt (
int):1for the first attempt,2when the callback is asked again. - LoadFailure (
Exception): the failure of the previous attempt,nullon the first. - FailedLoadOptions (
LoadOptions): a copy of the options the failed attempt used,nullon the first.
New in GroupDocs.Conversion.Options.Load: IPasswordLoadOptions with string Password { get; set; }, implemented by CompressionLoadOptions, NoteLoadOptions, PdfLoadOptions, PresentationLoadOptions, SpreadsheetLoadOptions and WordProcessingLoadOptions.
The callback is asked once more, for each document at most once, when a load fails because a password is required or wrong, the format is unknown or not supported, or the content is damaged, and when a CAD layout selection matches no sheet of the drawing. Options that differ from the failed ones load the document again; null or equal options keep the failure.
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());
}
For a ZIP, RAR or 7z entry that could not be extracted, the callback is asked with SourceStream set to null and a copy of the archive’s CompressionLoadOptions in FailedLoadOptions; the password returned applies to that entry only. Converter.GetDocumentInfo() asks again too; Converter.GetPossibleConversions() and Converter.IsDocumentPasswordProtected() call the callback once.
3. Merge an email and its attachments into one PDF
New: EmailLoadOptions.MergeAttachments (bool, default false). When an EML, EMLX or MSG message is converted to PDF, the message body and its attachments are merged into one PDF with a bookmark per part. Document-level PDF options such as PDF/A, password and page selection apply to the merged PDF, and attachments that cannot be converted to PDF are skipped.
using (var converter = new Converter("message.eml",
context => context.HierarchyLevel == 0 ? new EmailLoadOptions { MergeAttachments = true } : null))
{
converter.Convert("message.pdf", new PdfConvertOptions());
}
Any other target format fails with InvalidConvertOptionsException:
MergeAttachments supports only PDF as the target format, but <format> was requested.
4. .NET Framework 4.8 build
Starting with this release, GroupDocs.Conversion for .NET includes a build for .NET Framework 4.8 (net48), in the new GroupDocs.Conversion.Net48 runtime package, the ZIP archive and the MSI installer.
Microsoft ends support for .NET Framework 4.6.2 on January 12, 2027. After that date, we will continue shipping the .NET Framework 4.6.2 build (net462) as deprecated for a few more months, and then remove it. From that point, .NET Framework 4.8 will be the minimum supported .NET Framework version.
- Projects targeting .NET Framework 4.8 or 4.8.1 get the new
net48build automatically from NuGet — no code changes required. - Projects targeting .NET Framework 4.6.2–4.7.2 keep working with the
net462build for now. We recommend moving them to .NET Framework 4.8 before January 2027.
5. Other behaviour changes
- The load options callback is called once per load attempt, after the document’s format is detected, instead of before and again after detection, and its first call sees the detected
LoadContext.SourceFormat. It is now also called for a ZIP, RAR or 7z entry that could not be extracted. ConversionEvents.OnDocumentFailedreports the final outcome only: it is not raised for a document that loads when the callback is asked again.- An encrypted entry without a password or with a wrong one, and a damaged entry, in a ZIP, RAR or 7z archive no longer stop the conversion: the entry is reported to
OnDocumentFailedand skipped. A damaged password-protected ZIP or RAR entry is reported withCorruptOrDamagedFileExceptioninstead ofIncorrectPasswordException. - The
Depthof load options returned for a container inside another container limits the documents it holds to its own level plusDepth, within the main document’sDepth. A returned option’s defaultDepthcounts too. - Two
WebLoadOptionsthat differ only inConfigureHeadersorCredentialsProviderare no longer equal. - When the load options set a
DefaultFontthat is not available,ConversionEvents.OnFontSubstitutedis raised once more for the source document, with both font namesnulland aReasonsuch asThe default font 'Calibri' is not available; missing fonts were replaced by the engine's fallback font.Presentation substitutions are reported on every operating system. - Converting a single DjVu page to PNG, JPG or another raster format writes that format instead of TIFF.
- SVG conversions no longer request external resources that their target format does not use.
See Migrating to v26.11 for what to check in your code.
Updated documentation
- Convert to and from DocLang – new: DocLang formats, conversions and convert options
- Load DocLang document with options – new:
DocLangLoadOptions - Load password-protected document – supply the password only when a document needs it
- Context objects – complete guide –
Attempt,LoadFailureandFailedLoadOptions - Migration notes – migrating to 26.11
- Conversion events –
OnDocumentFailedfinal outcome, unavailable default font notification - Load email document with options and Convert email – merge an email and its attachments into one PDF
- System requirements and Installation – the .NET Framework 4.8 build
- Features overview – DocLang and passwords on demand