Browse our Products

Aspose.HTML for Java 25.4 Release Notes

We are honored to announce the April release of Aspose.HTML for Java.

This release includes fixed rendering image and improvements to rendering performance.

We fixed the processing of getting local resources.

Also, we have optimized both execution time and memory usage when processing external resources. In individual cases, execution time has been reduced by 7% to 70%, with an average improvement of 28%.

Additionally, the API has been updated to support Java native classes:

  • java.io.Writer in the WebAccessibility facility
  • java.io.Closeable and java.io.InputStream in the com.aspose.html.net package.

Improvements and Changes

List of issues that have been fixed
KeySummaryCategory
HTMLJAVA-1412HTML to DOCX conversion issueBug
HTMLJAVA-2004Mht to pdf - exception - “element already exists”Bug
HTMLJAVA-1157HTML to JPG - null pointer exception under CentOSBug
HTMLJAVA-1853Image is not showing up when converting html to imageBug
HTMLJAVA_803Incorrect HTML to PDF conversion result using Java API compared to the online HTML to PDF conversionBug
HTMLJAVA-1859Infinite Loop Converting HTML to PNGBug
HTMLJAVA-1998MHT Conversion is not rendering the image in the outputBug, Performance
HTMLJAVA-1715HTML to PDF: Optimize conversion timeBug, Performance
HTMLJAVA-1204Execution time decrease to 67 msBug, Performance
List of issues that have been improved
KeySummaryCategory
HTMLJAVA_1259Converter.convertHTML() throws ClassCastException. Missing imageBug
HTMLJAVA_1448The exception ‘Cannot read a name from the name table in a font’ when HTML to PDF. Missing imageBug, Restored image
HTMLJAVA_1646HTML to PDF - java.lang.NullPointerException, Missing ImagesBug, Restored image
HTMLJAVA_806HTML to PDF - Slow performance with missing imagesBug, Performance

Public API and Backward Incompatible Changes

Added APIs

Open to the public an enumeration:
class com.aspose.html.accessibility.saving.ValidationResultSaveFormat {
    public static final int Text = 0;
    public static final int JSON = 1;
    public static final int XML = 2;
}
Added methods saveTo() for Java native java.ioWriter:
class com.aspose.html.accessibility.results.ValidationResult {
    public void saveTo(java.ioWriter writer);
    public void saveTo(java.io.Writer writer,  int format);
}
Extended class Content to implement java.io.Closeable.
class com.aspose.html.net.Content implement java.io.Closeable;
And added a constructor for Java native InputStream:
class com.aspose.html.net.StreamContent extends Content {
     public StreamContent(java.io.InputStream content)
}