GroupDocs.Conversion for Node.js via Java 25.11 Release Notes
This release delivers a key compatibility fix for the latest Node.js 20+ versions and includes improvements to the documentation, code examples, and the npm package README.
In addition, this release includes all fixes and improvements introduced in versions GroupDocs.Conversion for Java 25.4 through GroupDocs.Conversion for Java 25.9.
Full list of changes in this release
| Key | Category | Summary |
|---|---|---|
| CONVERSIONNODEJS-258 | Enhancement | Update GroupDocs.Conversion for Java package version to 25.9 (done) |
| CONVERSIONNODEJS-257 | Fix | GroupDocs.Conversion for Node.js via Java was not compatible with the latest versions of Node.js (fixed) |
Public API changes
Converter class
- The
Converterclass constructor that accepts a stream has been removed and replaced with a stream supplier:
const fs = require('fs');
const java = require('java');
const path = require('path');
// Create read stream from file
const readStream = fs.createReadStream("source.docx");
// Convert to GroupDocs input stream
const stream = await groupdocs.readDataFromStream(readStream);
// Create Supplier<InputStream> that returns the stream (equivalent to Java lambda: () -> stream)
const streamSupplier = java.newProxy('java.util.function.Supplier', {
get: function() {
return stream;
}
});
// Initialize converter with stream data
const converter = new groupdocs.Converter(streamSupplier);
PdfConvertOptions class
- Method
setWidthrenamed tosetPageWidth - Method
setHeightrenamed tosetPageHeight
// Configure PDF conversion options with advanced settings
const convertOptions = new groupdocs.PdfConvertOptions();
convertOptions.setPageWidth(1024); // Set output width
convertOptions.setPageHeight(768); // Set output height
Package README
Updated the npm package README to include installation information and added three of the most common usage scenarios. See the package on npm: @groupdocs/groupdocs.conversion.
Code examples
Reviewed and updated the code examples structure, added logging, and aligned them with the documentation code examples.
Examples: GroupDocs.Conversion for Node.js via Java — Code Examples
Documentation
Updated documentation topics:
- System Requirements: System Requirements
- Installation: Install GroupDocs.Conversion for Node.js via Java
- How to Run Examples: How to Run Examples
- Licensing: Licensing
Added new documentation topic:
- Running in Docker: Running in Docker
Feedback
We value your feedback! If you have any questions, issues, or suggestions, feel free to reach out to us through our Free Support Forum. Our team will be happy to assist you and answer any questions you may have.