public function convertLocalFile($inputPath, $outputPath, $outputFormat)
    {
        $str_uri = Product::$baseProductUri . '/words/convert?format=' . $outputFormat;
        $signed_uri = Utils::sign($str_uri);
        $responseStream = Utils::uploadFileBinary($signed_uri, $inputPath, 'xml');

        $v_output = Utils::validateOutput($responseStream);

        if ($v_output === '') {
            if ($outputFormat == 'html') {
                $saveFormat = 'zip';
            } else {
                $saveFormat = $outputFormat;
            }

            if ($outputPath == '') {
                $outputPath = AsposeApp::$outPutLocation . Utils::getFileName($inputPath) . '.' . $saveFormat;
            }

            Utils::saveFile($responseStream, $outputPath);
            return $outputPath;
        }
        else
            return $v_output;
    }
public function convertLocalFile($inputPath, $outputPath, $outputFormat)
    {
        $str_uri = Product::$baseProductUri . '/words/convert?format=' . $outputFormat;
        $signed_uri = Utils::sign($str_uri);
        $responseStream = Utils::uploadFileBinary($signed_uri, $inputPath, 'xml');

        $v_output = Utils::validateOutput($responseStream);

        if ($v_output === '') {
            if ($outputFormat == 'html') {
                $saveFormat = 'zip';
            } else {
                $saveFormat = $outputFormat;
            }

            if ($outputPath == '') {
                $outputPath = AsposeApp::$outPutLocation . Utils::getFileName($inputPath) . '.' . $saveFormat;
            }

            Utils::saveFile($responseStream, $outputPath);
            return $outputPath;
        }
        else
            return $v_output;
    }
public function convertLocalFile ( $ inputPath , $ outputPath , $ outputFormat ) { $ str_uri = Product :: $ baseProductUri . '/words/convert?format=' . $ outputFormat ; $ signed_uri = Utils :: sign ( $ str_uri ) ; $ responseStream = Utils :: uploadFileBinary ( $ signed_uri , $ inputPath , 'xml' ) ; $ v_output = Utils :: validateOutput ( $ responseStream ) ; if ( $ v_output === '' ) { if ( $ outputFormat == 'html' ) { $ saveFormat = 'zip' ; } else { $ saveFormat = $ outputFormat ; } if ( $ outputPath == '' ) { $ outputPath = AsposeApp :: $ outPutLocation . Utils :: getFileName ( $ inputPath ) . '.' . $ saveFormat ; } Utils :: saveFile ( $ responseStream , $ outputPath ) ; return $ outputPath ; } else return $ v_output ; }
Convert a document to SaveFormat without using Aspose storage.

@param string $inputPath The path of source file.
@param string $outputPath Path where you want to file after conversion.
@param string $outputFormat New file format.

@return string Returns the file path.
Convert a document to SaveFormat without using Aspose storage .