Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

 

GroupDocs.Viewer for Node.js via Java 24.6

Download   Support Forum 

File Details

  • Downloads:
  • 1
  • File Size:
  • 42.95KB
  • Date Added:
  • 3/7/2024

Description

This contains the NPM package of GroupDocs.Viewer for Node.js via Java 24.6.

File Details

Enhanced Excel Rendering

With the latest Node.js document viewer release, you can render Excel spreadsheets with precise page breaks and print areas, mimicking Excel’s printing behavior on your favorite platform. The following code example illustrates the feature usage:


//render spreadsheet into PDF
const viewer = new groupdocs.viewer.Viewer("products.xlsx");
const viewOptions = groupdocs.viewer.PdfViewOptions("output.pdf");
viewOptions.setSpreadsheetOptions(groupdocs.viewer.SpreadsheetOptions.forRenderingPrintAreaAndPageBreaks());
viewer.view(viewOptions)

//render spreadsheet into HTML
const viewer = new groupdocs.viewer.Viewer("products.xlsx");
const viewOptions = groupdocs.viewer.HtmlViewOptions.forEmbeddedResources("page_{0}.html")
viewOptions.setSpreadsheetOptions(groupdocs.viewer.SpreadsheetOptions.forRenderingPrintAreaAndPageBreaks())
viewer.view(viewOptions)

Source*

Control External Resources

GroupDocs.Viewer for Node.js via Java 24.6 streamlines rendering by selectively downloading or skipping external resources referenced within your documents. Please check out the following coding sample to learn how to use this functionality:


const loadOptions = new groupdocs.viewer.LoadOptions()
loadOptions.setSkipExternalResources(true) // Skip loading of external resources
loadOptions.getWhitelistedResources().add("avatars.githubusercontent.com")  //Enable loading of external resources that has 'avatars.

// githubusercontent.com' fragment in resource URL.
const viewer = new groupdocs.viewer.Viewer("business-flyer.docx", loadOptions)
const viewOptions = groupdocs.viewer.HtmlViewOptions.forEmbeddedResources()
viewer.view(viewOptions)

Source*

Embedded License Support

The newest version of the Node.js library simplifies license management by referencing embedded licenses directly from your project. This code example shows how to read licenses from embedded resources:


// set license from embedded resource
const license = new groupdocs.viewer.License()
license.setLicense("com/sample/GroupDocs.Viewer.lic");

Source*

Font License Verification Control

Developers can now gain more control over font license verification in XPS/OXPS files. Here’s how you can utilize this functionality within your cross-platform Node.js apps:


const viewer = new groupdocs.viewer.Viewer("resume.oxps")
const viewOptions = groupdocs.viewer.HtmlViewOptions.forEmbeddedResources()
viewOptions.getPdfOptions().setDisableFontLicenseVerifications(true)
viewer.view(viewOptions)

Source*

Better Image Quality

Integrate enhanced visual fidelity of rendered documents into your document viewing solutions by wrapping images in SVG when exporting to PDF and Page Layout formats, as illustrated in the following code sample:


const viewer = new groupdocs.viewer.Viewer("resume.pdf")
const viewOptions = groupdocs.viewer.HtmlViewOptions.forEmbeddedResources()
const pdfOptions = new groupdocs.viewer.PdfViewOptions();
pdfOptions.setWrapImagesInSvg(true);
viewOptions.setPdfOptions(pdfOptions);
viewer.view(viewOptions)

Source*

You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting GroupDocs.Viewer for Node.js via Java 24.6 Release Notes.

 English