Browse our Products

Aspose.Slides for PHP via Java 24.1 Release Notes

KeySummaryCategory
SLIDESPHP-43Use Aspose.Slides for Java 24.1 featuresEnhancement

Public API Changes

PDF import detect tables option added

The PdfImportOptions.DetectTables option has been added to ensure that when importing PDF tables are automatically detected and imported as a table in Slide.

Below is an example of PDF import with tables detecting:

$pres = new Presentation();
try {
    $pdfImportOptions = new PdfImportOptions();
    $pdfImportOptions->setDetectTables(true);

    $stream = new Java("java.io.FileInputStream", "document.pdf");
    $pres->getSlides()->addFromPdf(java_values($stream), $pdfImportOptions);

    $pres->save("output.pptx", SaveFormat::Pptx);
} finally {
    if ($pres != null) $pres->dispose();
}