GroupDocs.Viewer for .NET 24.4 Release Notes

This release includes one new feature and 11 bug fixes.

Full list of changes in this release

KeyCategorySummary
VIEWERNET‑4625FeaturePreserve PDF copy protection when rendering to HTML
VIEWERNET‑4785FixCannot load corrupted or damaged MSG with attachment with GroupDocsViewerException is thrown
VIEWERNET‑4794FixOut of memory exception on Linux
VIEWERNET‑4792FixImages are not in the right place
VIEWERNET‑4431Fix[GroupDocs.Viewer.UI] PDF file pages loading slowly (.Net Core Project)
VIEWERNET‑4784FixWord With Table - Viewing problem
VIEWERNET‑4490Fix[GroupDocs.Viewer.UI] Possible Memory Leak in the JpegViewer
VIEWERNET‑4789FixExcel files Display Problem
VIEWERNET‑3930FixImage rendering issue from DOCX to HTML
VIEWERNET‑3268Fix“Could not load file. File is corrupted or damaged.” exception when rendering AI file
VIEWERNET‑3609Fix“Could not load file. File is corrupted or damaged.” exception when rendering AI file
VIEWERNET‑2551Fix“Image export failed” exception when rendering PSD file

Preserve PDF copy protection when rendering to HTML

When rendering PDF files with protection against copying text and images to HTML, GroupDocs.Viewer adds an inert HTML attribute to the HTML <body> tag.

Use PdfOptions.DisableCopyProtection to turn off copy protection. When DisableCopyProtection is set to true, the inert HTML attribute won’t be added to the HTML <body> tag in any case.

This option is supported when rendering PDF files to HTML with embedded or external resources.

using (Viewer viewer = new Viewer("protected-resume.pdf"))
{
    HtmlViewOptions viewOptions = HtmlViewOptions.ForEmbeddedResources();
    viewOptions.PdfOptions.DisableCopyProtection = true;

    viewer.View(viewOptions);
}

The following image shows the rendering of protected-resume.pdf with copy protection on the left and with with DisableCopyProtection option set to true on the right:

Render with or without copy protection