For instance, when I uploaded a file to the temp folder on server, are there any way to scan through the folder and check whether a specific file is multi page or not?
Some code like:
$files = scandir ('$tempSrc');
foreach ($files as $pdf) {
$isMulti = //exec some command or call php function (if any?);
echo $isMulti;
}