<?php // Copyright (c) 2021 ActivePDF, Inc. // ActivePDF Server 2013 // Example generated 04/17/21 ?> <?php // Get current path $strPath = dirname(__FILE__) . "\\"; // Instantiate Object $oSVR = new COM("APServer.Object"); // PostScript to PDF conversion (.ps or .eps) // Convert the PostScript file into PDF $results = $oSVR->ConvertPSToPDF($strPath . "PS.ps", $strPath . "PS.pdf"); if ($results->ServerStatus != 0) { Error("ConvertPSToPDF", $results, $results->ServerStatus); } // Release Object $oSVR = null; // Process Complete echo "Done!"; // Error Handling function Error($method, $oResults, $errorStatus) { echo "Error with " . $method . ": <br/>" . $errorStatus . "<br/>" . $oResults->details; exit(1); } ?>