GroupDocs.Viewer for .NET 24.2 Release Notes

This release includes one new feature and 7 bug fixes.

Full list of changes in this release

KeyCategorySummary
VIEWERNET‑4712FeatureIntroduce new performance-oriented conversion mode for CAD format family
VIEWERNET‑4654FixText is not bold in the output HTML while font is installed or added using font repository
VIEWERNET‑4583Fix[GroupDocs.Viewer.UI] Specific Pdf file viewer api 500 error
VIEWERNET‑4586FixPDF to HTML: Rendering HTML raises the GroupDocsViewerException
VIEWERNET‑4736FixThe number greater than zero is expected. (Parameter ‘width’)
VIEWERNET‑2789FixIncorrect page size
VIEWERNET‑2758FixMissing drawing elements when converting DWG
VIEWERNET‑3371FixThe font size of superscripts does not decrease and pages grayed out when converting PS to PDF

Major changes

Introduced new performance-oriented conversion mode for CAD format family

By default the GroupDocs.Viewer converts and renders all documents within CAD format family with the max possible quality. In case when the input CAD file (DWG, for example) is very complex, it may lead to quite significant processing time. Also, the size of the generated output HTML or image (vector or raster) also may be too heavy.

Starting from the version 24.2 the GroupDocs.Viewer introduces a new public property within the CadOptions class — the EnablePerformanceConversionMode boolean flag. By default it is set to false - the GroupDocs.Viewer behaves as in previous versions, preserving the maximum quality. But when setting its value to true, then the performance-oriented conversion mode is enabled, which leads to significantly lesser conversion time as well as lesser byte size of the output document.

Enabling this mode is pretty simple — just create an instance of the CadOptions class by using any of the CadOptions factory methods, and then set the value for the EnablePerformanceConversionMode property. Example is below:

using (Viewer viewer = new Viewer("input.dwg"))
{
   HtmlViewOptions viewOptions = HtmlViewOptions.ForEmbeddedResources("Output-Page#{0}.html");                    
   viewOptions.CadOptions = CadOptions.ForRenderingByWidth(1000);
   viewOptions.CadOptions.EnablePerformanceConversionMode = true;

   viewer.View(viewOptions);
}

If taking an ordinary DWG file as a sample, the comparison between “quality” and “performance” modes are the next:

Conversion modeOutput file size, MiBProcessing time, sec
Quality-oriented (default)46.87.87
Performance-oriented (new)5.044.47

Screenshot below illustrates the visual differences between these modes, default quality-oriented mode is on the left side, and the new performance-oriented mode is on the right side:

DWG quality vs. performance