Browse our Products
Aspose.Slides for PHP via Java 23.10 Release Notes
This page contains release notes for Aspose.Slides for PHP via Java
Key | Summary | Category |
---|---|---|
SLIDESPHP-37 | Use Aspose.Slides for Java 23.10 features | Enhancement |
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:
$tiffOptions = new TiffOptions();
$tiffOptions->setCompressionType(TiffCompressionTypes::CCITT4);
$tiffOptions->setBwConversionMode(BlackWhiteConversionMode::Dithering);
$presentation = new Presentation();
try {
$presentation->save($tiffFilePath, 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:
$pres = new Presentation("pres.pptx");
try {
$ink = $pres->getSlides()->get_Item(0)->getShapes()->get_Item(0);
$traces = $ink->getTraces();
$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:
$pres = new Presentation();
try {
$sld = $pres->getSlides()->get_Item(0);
$ashp = $sld->getShapes()->addAutoShape(ShapeType::Rectangle, 150, 75, 150, 50);
$para = $ashp->getTextFrame()->getParagraphs()->get_Item(0);
$portion = $para->getPortions()->get_Item(0);
$portion->setText("Aspose Paragraph GetLinesCount() Example");
echo "Lines Count = " . $para->getLinesCount();
} finally {
if ($pres != null) $pres->dispose();
}