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

KeyCategorySummary
CONVERSIONNET-7493FeatureEmbedding .eml attachments into one converted Pdf document
CONVERSIONNET-8733FeatureAsk the load options callback again when a document fails to load, so a password can be supplied when it is needed
CONVERSIONNET-8756FeatureConvert Word documents to DocLang
CONVERSIONNET-8757FeatureAdd DocLang as a conversion target for PDF, spreadsheet, presentation, email and other documents
CONVERSIONNET-8758FeatureAdd DocLang as a conversion source for PDF, Word, image and other formats
CONVERSIONNET-8725ImprovementReport a damaged password-protected ZIP or RAR entry as damaged instead of as a wrong password
CONVERSIONNET-8729ImprovementAdd .NET Framework 4.8 (net48) target
CONVERSIONNET-8731ImprovementLet the load options returned for a contained document limit how deep its contents are converted
CONVERSIONNET-8734ImprovementAsk the load options callback again when a CAD layout selection matches no sheet of the drawing
CONVERSIONNET-8737ImprovementFix SVG conversions requesting external resources that their target format does not use
CONVERSIONNET-8741ImprovementReport an unavailable default font instead of silently ignoring it
CONVERSIONNET-8296BugHtml to Docx conversion issues #2
CONVERSIONNET-8611BugDWFX to PDF fails with “Expected positive width value. (Parameter ‘width’)”
CONVERSIONNET-8713BugFix PST and OST conversions ignoring the Folder load option
CONVERSIONNET-8714BugFix owned documents being skipped after the first nested container
CONVERSIONNET-8720BugFix email, mailbox and archive conversion skipping contained documents and ignoring the Depth limit
CONVERSIONNET-8721BugFix a damaged image attachment stopping the conversion of the rest of an email, mailbox or archive
CONVERSIONNET-8722BugFix an encrypted or wrong-password archive entry stopping the conversion of the rest of the archive
CONVERSIONNET-8723BugFix a damaged archive entry stopping the conversion of the rest of the archive
CONVERSIONNET-8724BugFix an encrypted or damaged 7z entry stopping the conversion of the rest of the archive
CONVERSIONNET-8726BugFix WebLoadOptions comparing as equal when their header or credentials callbacks differ
CONVERSIONNET-8732BugFix the load options callback being called twice for a document and not seeing its detected format
CONVERSIONNET-8735BugFix CGM document info reporting no creation date
CONVERSIONNET-8742BugUse a default font supplied through FontDirectories when rendering PDF documents
CONVERSIONNET-8744BugUse the default font for missing fonts when converting emails to PDF
CONVERSIONNET-8745BugApply the default font and font substitutes when converting emails to images, XPS, PS, PCL, SVG and presentations
CONVERSIONNET-8746BugApply each conversion’s own default font, font substitutes and font notifications when converting PDF documents
CONVERSIONNET-8747BugConvert spreadsheets when the default font name is 32 characters or longer
CONVERSIONNET-8748BugApply font substitutes to the email body when converting emails to PDF
CONVERSIONNET-8750BugUse default fonts and font substitutes from TrueType collections when converting emails to PDF
CONVERSIONNET-8751BugUse default fonts and font substitutes when converting emails to PDF/UA
CONVERSIONNET-8752BugUse fonts from the font directories when converting HTML and emails to PDF/UA
CONVERSIONNET-8753BugWrite 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.MergeAttachments merges 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 (default DocLangFileType.Dclx), IncludeLocations (default true), IncludePageImages (default false), PageNumber, PagesCount and Pages.
  • DocLangLoadOptions in GroupDocs.Conversion.Options.Load, with Format.
  • DocLangDocumentInfo in GroupDocs.Conversion.Contracts. Its PagesCount is 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): 1 for the first attempt, 2 when the callback is asked again.
  • LoadFailure (Exception): the failure of the previous attempt, null on the first.
  • FailedLoadOptions (LoadOptions): a copy of the options the failed attempt used, null on 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 net48 build automatically from NuGet — no code changes required.
  • Projects targeting .NET Framework 4.6.2–4.7.2 keep working with the net462 build 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.OnDocumentFailed reports 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 OnDocumentFailed and skipped. A damaged password-protected ZIP or RAR entry is reported with CorruptOrDamagedFileException instead of IncorrectPasswordException.
  • The Depth of load options returned for a container inside another container limits the documents it holds to its own level plus Depth, within the main document’s Depth. A returned option’s default Depth counts too.
  • Two WebLoadOptions that differ only in ConfigureHeaders or CredentialsProvider are no longer equal.
  • When the load options set a DefaultFont that is not available, ConversionEvents.OnFontSubstituted is raised once more for the source document, with both font names null and a Reason such as The 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