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.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
GroupDocs.Viewer for Node.js via Java 24.5 lets you reduce the file size or prepare PDFs for web browsers with various options like removing annotations, compressing images, and more. Please check out the following coding sample, which highlights how to enable the available PDF optimization options.
const viewer = new groupdocs.viewer.Viewer("invoice.pdf")
const viewOptions = new groupdocs.viewer.PdfViewOptions()
const optimizationOptions = new groupdocs.viewer.PdfOptimizationOptions()
optimizationOptions.setLinearize(true) // Optimize PDF for web-browsers
optimizationOptions.setOptimizeSpreadsheets(true) // Optimize spreadsheets for a smaller size
optimizationOptions.setSubsetFonts(true) // Keep the characters that actually used
optimizationOptions.setRemoveAnnotations(true) // Remove annotations
optimizationOptions.setRemoveFormFields(true) // Remove form fields
optimizationOptions.setConvertToGrayScale(true) // Convert images to grayscale
optimizationOptions.setCompressImages(true) // Enable images compression
optimizationOptions.setResizeImages(true) // Enable resize images with lower resolution
optimizationOptions.setMaxResolution(150) // Set resolution for images, default value is 300
optimizationOptions.setImageQuality(30) // Set image quality, default value is 100
viewOptions.setPdfOptimizationOptions(optimizationOptions)
viewer.view(viewOptions)
Developers can effortlessly access details about the generated PDF file, including the number of pages and their sizes, using the latest Node.js document viewing API release. This code example shows how to retrieve the output PDF document information.
const viewer = new groupdocs.viewer.Viewer("resume.docx")
const viewInfoOptions = new groupdocs.viewer.ViewInfoOptions.forPdfView()
const viewInfo = viewer.getViewInfo(viewInfoOptions)
//Get number of pages and pages size
In this version of GroupDocs.Viewer for Node.js, we have resolved the issues causing high memory usage and long processing times for specific file types like spreadsheets and PST files.
The PdfViewOptions#setJpgQuality and PdfViewOptions#setOptimize API members are now deprecated. Use the new PdfOptimizationOptions class for image quality and spreadsheet optimization.
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.5 Release Notes.