Browse our Products

Aspose.Slides for Node.js via Java 23.10 Release Notes

KeySummaryCategory
SLIDESNODEJS-6Use Aspose.Slides for Java 23.10 featuresEnhancement

Public API Changes

TiffOptions.BwConversionMode property and BlackWhiteConversionMode enum added

The new TiffOptions.BwConversionMode property allows you to specify the algorithm for converting a color image to a black and white image. This setting is applied only when CompressionType is set to TiffCompressionTypes.CCITT4 or TiffCompressionTypes.CCITT3.

Example:

var tiffOptions = new aspose.slides.TiffOptions();
tiffOptions.setCompressionType(aspose.slides.TiffCompressionTypes.CCITT4);
tiffOptions.setBwConversionMode(aspose.slides.BlackWhiteConversionMode.Dithering);

var presentation = new aspose.slides.Presentation();
try {
    presentation.save(tiffFilePath, aspose.slides.SaveFormat.Tiff, tiffOptions);
} finally {
    if (presentation != null) presentation.dispose();
}

InkBrush and InkTrace classes have been added

New classes related to Ink management API have been added:

  • InkTrace represents a trace element that is used to record the data captured by the digitizer. It contains a sequence of points.
  • InkBrush represents trace brush.

Example:

var pres = new aspose.slides.Presentation("pres.pptx");
try {
    var ink = pres.getSlides().get_Item(0).getShapes().get_Item(0);
    var traces = ink.getTraces();
    var brush = traces[0].getBrush();
} finally {
    if (pres != null) pres.dispose();
}

Paragraph.GetLinesCount method has been added

The new GetLinesCount method of the Paragraph class allows you to get the number of lines in a paragraph.

Example:

var pres = new aspose.slides.Presentation();
try {
    var sld = pres.getSlides().get_Item(0);
    var ashp = sld.getShapes().addAutoShape(aspose.slides.ShapeType.Rectangle, 150, 75, 150, 50);
    var para = ashp.getTextFrame().getParagraphs().get_Item(0);
    var portion = para.getPortions().get_Item(0);
    portion.setText("Aspose Paragraph GetLinesCount() Example");
    console.log("Lines Count = " + para.getLinesCount());
} finally {
    if (pres != null) pres.dispose();
}