I want to get the page numbers of ppt files. My Code:
$filename = "aaa.ppt";
$word = new COM("Powerpoint.Application");
$word->PresentationDocument->Open($filename);
$wdStatisticPages = 2; // Value that corresponds to the Page count in the Statistics
echo $word->ActivePresentation->SlideParts->Count($wdStatisticPages);
$word->ActivePresentation->Close();
$word->Quit();
But it gives error:
Fatal error: Uncaught exception 'com_exception' with message 'Unable to lookup `PresentationDocument': Unknown name. '