| This example allows you to convert a PDF page to image using Saaspose Pdf REST API in your PHP applications. |
| We're referring to the following common methods to perform general operations: |
//check whether file is set or not if ($this->FileName == "") throw new Exception("No file name specified"); $strURI = Product::$BaseProductUri . "/pdf/" . $this->FileName . "/pages/" . $pageNumber . "?format=" . $imageFormat . "&width=" . $width . "&height=" . $height; $signedURI = Utils::Sign($strURI); $responseStream = Utils::processCommand($signedURI, "GET", "", ""); Utils::saveFile($responseStream, SaasposeApp::$OutPutLocation . "output." . $imageFormat);

