GroupDocs.Viewer for Java 22.12 Release Notes

Major Features

There are lots of features, improvements, and bug-fixes in this release, most notable are:

  • Set resolution for images in presentations that are rendered to HTML
  • Add support of rendering QR-codes in Word files
  • Try to open files with Excel extension as TSV/CSV
  • Links now working when rendering CHM files to HTML
  • Added text gradient support for DOCX files
  • Fields are going to be updated when rendering Words documents that contains barcodes
  • Excel original grid should not be changed when text overflow is set to HideText or OverlayIfNextIsEmpty
  • Fixed issue when hatched area displayed as solid color rendering VSD document

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
VIEWERNET-3681Add support of rendering QR-codes in Word filesFeature
VIEWERNET-3689Set resolution for images in presentations that are rendered to HTMLFeature
VIEWERNET-3782Text gradient support for DOCX filesFeature
VIEWERJAVA-2755Support Image Quality option when rendering PDF to PNGFeature
VIEWERNET-3694Try to open files with Excel extension as TSV/CSVImprovement
VIEWERNET-2867“Could not load file. File is corrupted or damaged.” exception when rendering HPG fileBug
VIEWERNET-2920Try to autodetect file format and open file when file extension is wrongBug
VIEWERNET-2986Links are broken when rendering CHM files to HTMLBug
VIEWERNET-3187“Failed to render CAD document into PDF.” exception when rendering DWG file"Bug
VIEWERNET-3223Viewer - html files with erroneous css classBug
VIEWERNET-3405“Could not load file. File is corrupted or damaged.” exception when rendering DWF fileBug
VIEWERNET-3421“Could not load file. File is corrupted or damaged.” exception when rendering DWF fileBug
VIEWERNET-3453Watermark text size issue with pdf through Viewer APIBug
VIEWERNET-3596“CAD document rendering failed.Please check that CadOptions sizing options do not have too low or too high values.“exception when rendering DWF fileBug
VIEWERNET-3675For VSSX-file it is not generating cache HTML-file for the second page.Bug
VIEWERNET-3680Exception was thrown when rendering PDF in appBug
VIEWERNET-3730Exception when opening particular EPS fileBug
VIEWERNET-3731Missing text when rendering PS into PDFBug
VIEWERNET-3732Errors while extracting a text from PDFBug
VIEWERNET-3403“Could not load file. File is corrupted or damaged.” exception when rendering DCM fileBug
VIEWERNET-3465“Unable to cast object exception” when rendering specific WMF fileBug
VIEWERNET-3574“Could not load file. File is corrupted or damaged.” exception when rendering MPP file”Bug
VIEWERNET-3667“Could not load file. File is corrupted or damaged.” exception when rendering TGA file”Bug
VIEWERNET-3684Excel original grid should not be changed when Overflow HideText and OverlayIfNextIsEmpty renderingBug
VIEWERNET-3736QR code size is smaller comparing with WordBug
VIEWERNET-3741Barcode fields are not updatedBug
VIEWERNET-3742Cannot view specific XLS fileBug
VIEWERNET-3780Failed to load specific PSDBug
VIEWERNET-3783Conversion from EPS to PDF produce blank outputBug
VIEWERJAVA-1368Hatched area displayed as solid color when rendering VSD documentBug
VIEWERJAVA-2985Exception throws opening ONE fileBug
VIEWERJAVA-2990Rendering to html with embedded resources generates external linkBug

Public API Changes

com.groupdocs.viewer.options.BaseViewOptions class

Added new PresentationOptions property to BaseViewOptions class.

/**
* The presentation processing documents view options.
*/
public PresentationOptions getPresentationOptions() { ... }

/**
 * The presentation processing documents view options.
 */
public void setPresentationOptions(PresentationOptions presentationOptions) { ... }

GroupDocs.Viewer.Options namespace

Added new PresentationOptions and Resolution classes.

/**
 * Provides options for rendering presentations options.
 */
public class PresentationOptions {

    /**
     * Resolution for images inside presentation (for to HTML/PDF rendering only).
     */
    public Resolution getResolution() { ... }

    /**
     * Resolution for images inside presentation (for to HTML/PDF rendering only).
     */
    public void setResolution(Resolution resolution) { ... }
}

/**
 * Provides option to set resolution for images : output document.
 */
public enum Resolution {
    /**
     * Good quality for high-definition (HD) displays.
     */
    Dpi330(330),
    /**
     * Excellent quality on most printers and screens.
     */
    Dpi220(220),
    /**
     * Good for web pages and projectors.
     */
    Dpi150(150),
    /**
     * Good for web pages and projectors.
     */
    Dpi96(96),
    /**
     * Default compression level.
     */
    Dpi72(72),
    /**
     * Default compression level - as : the document.
     */
    DocumentResolution(0);

    /**
     * Quality DPI.
     */
    public int getValue() { ... }
}

Behavior changes

Since GroupDocs.Viewer 22.12 version if the file extension is wrong, GroupDocs.Viewer will try to detect the actual format and render the file. Since GroupDocs.Viewer 22.12 version you can set a resolution for images inside presentations when rendering to HTML:

try (Viewer viewer = new Viewer("presentation.pptx")) {
    HtmlViewOptions options = HtmlViewOptions.forEmbeddedResources("result_{0}.html");
    options.getPresentationOptions().setResolution(Resolution.Dpi72);

    viewer.view(options);
}

Read more in the following help topic: Specify image resolution.

In GroupDocs.Viewer 22.12 version because of issues of auto detection, auto detection feature is disabled. Document extension should match the actual document format.