The latest release of GroupDocs.Conversion for .NET (v24.5) brings an array of enhancements and bug fixes designed to empower your document conversion capabilities within .NET applications. The MSI installer of this release enables the development of high-performance document conversion applications targeting the Windows platform.
Enhanced Embedded Document Conversion
Build feature-rich applications to power up document conversions effortlessly with the latest .NET API release. Convert embedded documents within WordProcessing, Presentation, and Spreadsheet formats. This example code illustrates how to convert a Word (DOCX) document to PDF format with the newly added ConvertOwner, ConvertOwned, and Depth properties of the WordProcessingLoadOptions
class.
const string source = "sample-ole.docx";
using (var converter = new Converter(source, () => new WordProcessingLoadOptions
{
ConvertOwner = true,
ConvertOwned = true,
Depth = 1
}))
{
var convertOptions = new PdfConvertOptions();
converter.Convert("converted.pdf", convertOptions);
}
Source*
Hyphenation for WordProcessing Conversions
Developers can ascertain seamless hyphenation for a professional look when converting word-processing documents with the latest C# document conversion API. Please check out the following code sample to learn about the feature usage.
const string source = "sample.docx";
using (var converter = new Converter(source, () => new WordProcessingLoadOptions
{
HyphenationOptions =
{
AutoHyphenation = true
}
}))
{
var convertOptions = new PdfConvertOptions();
converter.Convert("converted.pdf", convertOptions);
}
Source*
Convert EML to PDF in .NET
GroupDocs.Conversion for .NET 24.5 supports improved handling of attachment information during EML to PDF conversions. This C# code sample shows how to convert EML to PDF and manipulate various attachment options.
const string source = "sample-with-attachment.eml";
using (var converter = new Converter(source, (fileType) => new EmailLoadOptions
{
ConvertOwned = false,
DisplayAttachments = false,
DisplaySent = false,
DisplaySubject = false
}))
{
var options = new PdfConvertOptions();
converter.Convert((FileType fileType) => new FileStream($"converted.pdf", FileMode.Create), options);
}
Source*
Improved PDF Security
Developers can now experience enhanced PDF security by removing all JavaScript actions from the original PDF during conversion within their C# and VB.NET solutions.
Configurable Font Embedding for Web Conversions
This version of GroupDocs.Conversion for .NET offers greater control of font embedding behavior while converting documents to web-friendly formats. This C# code sample demonstrates converting DOCX to HTML with embedded font resources enabled.
const string source = "sample.docx";
using (var converter = new Converter(source))
{
var convertOptions = new WebConvertOptions
{
FixedLayout = false,
EmbedFontResources = true
};
converter.Convert("converted.html", convertOptions);
}
Source*
Fixed Bugs
- Resolved text spacing issues occurring during PowerPoint to PDF/A-2u conversions.
- Addressed a bug causing blank output PDFs when setting specific PDF options.
- Ensured proper table width reflection in output RTF files when specified as a ratio.
- Fixed an issue resulting in empty results during MSG to PDF conversions with custom width and height.
- Addressed border rendering issues around tables during conversions.
- Preserved tracked changes during DOCX to PDF conversions.
- Resolved text disappearance during DOCX to RTF conversions.
- Improved HTML to RTF formatting.
- Fixed blank output issues during DWG to PDF conversions.
- Ensured proper PageOrientation handling during document conversions.
- Addressed margin problems encountered while converting emails to PDF.
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting GroupDocs.Conversion for .NET 24.5 Release Notes.