GroupDocs.Viewer for .NET 17.7.0 Release Notes
Major Features
One new feature and 14 improvements and fixes in this regular monthly release. The most notable are:
- Added support of rendering PDF document with attachments
- Extended support for setting font directories for Presentation documents
- Extended support for setting JpegQuality when rendering SVG as PDF
Full List of Issues Covering all Changes in this Release
Key | Summary | Category |
---|---|---|
VIEWERNET-1182 | Support rendering PDF documents with attachments | New Feature |
VIEWERNET-1274 | Extend support for setting font directories to Presentation documents | Improvement |
VIEWERNET-1255 | Extend support for setting JpegQuality when rendering SVG as PDF | Improvement |
VIEWERNET-1250 | Improve rendering Microsoft Visio document as HTML | Improvement |
VIEWERNET-1173 | Rendering djvu documents with maximum JpegQuality renders contained images with low quality | Improvement |
WEB-2429 | PDF with hieroglyphs is converted to the JPEG and HTML with corrupted symbols | Bug |
VIEWERNET-1262 | Resource prefix not applied when rendering Presentation documents to HTML | Bug |
VIEWERNET-1252 | Watermark not displayed when rendering Microsoft Visio document as HTML | Bug |
VIEWERNET-1251 | Multipage Microsoft Visio document shows page count as one | Bug |
VIEWERNET-1220 | ViewerConfig.DefaultFontName setting does not replace missing fonts for Spreadsheet documents | Bug |
VIEWERNET-1203 | Conflict when using GroupDocs.Viewer and Aspose APIs in same project | Bug |
VIEWERNET-1154 | Incorrect rendering of bullets in HTML mode | Bug |
VIEWERNET-1151 | Incorrect Characters after rendering PDF in HTML/Image mode | Bug |
VIEWERNET-1143 | Some characters are being replaced with a ? placeholder while rendering. | Bug |
VIEWERNET-917 | Failed to load DGN file | Bug |
Public API and Backward Incompatible Changes
How to set output quality when rendering documents into pdf
How to adjust the quality and size when rendering documents into pdf
// Setup GroupDocs.Viewer config
ViewerConfig config = new ViewerConfig();
config.StoragePath = @"C:\storage\";
// Create image handler
ViewerImageHandler handler = new ViewerImageHandler(config);
string guid = "document.djvu";
// Set pdf options JpegQuality in a range between 1 and 100
PdfFileOptions pdfFileOptions = new PdfFileOptions();
pdfFileOptions.JpegQuality = 5;
// Get file as pdf
using (FileContainer container = handler.GetPdfFile(guid, pdfFileOptions))
{
Console.WriteLine("Stream lenght: {0}", container.Stream.Length);
}
List of formats affected by PdfFileOptions.JpegQuality property when rendered as pdf
Format Name | Description |
---|---|
Microsoft Word | Affects JPEG images contained in Microsoft Word documents |
Microsoft PowerPoint | Affects JPEG images contained in Microsoft Power Point documents |
Microsoft Outlook | Affects JPEG images set as a background in email documents msg and eml formats |
OpenDocument Formats | Affects JPEG images contained in OpenDocument presentation (odp) andOpenDocument text (odt) formats |
Image files | Affects rendering from PSD, TIFF, multi-page TIFF, WebP, SVG and DjVu formats |
Metafile | Affects rendering from WMF and EMF formats |
Microsoft Visio | Affects JPEG images contained inside Microsoft Visio documents |
List of Changes in GroupDocs.Viewer for .NET 17.7.0
GroupDocs.Viewer.Converter.Options.PdfOptions - Public bool PreventGlyphsGrouping obsolete property compilation is set to fail
Using this property in non obsolete members will result in compilation error. Get ready for the change, this property is no longer active and will be completely removed in the next version. Please use EnablePreciseRendering property instead. The difference between this tow settings is that obsolete PreventGlyphsGrouping property has been influencing only rendering into HTML, whereas EnablePreciseRendering affects both image and HTML rendering. More over EnablePreciseRendering contains additional technics for improving rendering PDF documents.
Public GroupDocs.Viewer.Domain.EmailAttachment obsolete class and class members compilation is set to fail
Please use GroupDocs.Viewer.Domain.Attachment class instead as show in example below. This class is obsolete and will be removed in the next version.
Loading email attachments using obsolete and new class
Before v17.5.0 (C#)
// Setup GroupDocs.Viewer config
ViewerConfig config = new ViewerConfig();
config.StoragePath = @"C:\storage";
// Create attachment object and print out its name and file type
EmailAttachment attachment = new EmailAttachment("document-with-attachments.msg", "attachment-image.png");
Console.WriteLine("Attach name: {0}, size: {1}", attachment.Name, attachment.FileType);
// Get attachment original file and print out Stream length
using (FileContainer fileContainer = imageHandler.GetFile(attachment))
{
Console.WriteLine("Attach stream lenght: {0}", fileContainer.Stream.Length);
}
v17.5.0 and higher (C#)
// Setup GroupDocs.Viewer config
ViewerConfig config = new ViewerConfig();
config.StoragePath = @"C:\storage";
// Create attachment object and print out its name and file type
Attachment attachment = new Attachment("document-with-attachments.msg", "attachment-image.png");
Console.WriteLine("Attach name: {0}, size: {1}", attachment.Name, attachment.FileType);
// Get attachment original file and print out Stream length
using (FileContainer fileContainer = imageHandler.GetFile(attachment))
{
Console.WriteLine("Attach stream lenght: {0}", fileContainer.Stream.Length);
}
GroupDocs.Viewer.Domain.FileData - Public bool IsComplete property compilation is set to fail
This property will be removed in the next version