public function saveAs($name)
    {
        if (!$this->getCommand()->getExecuted() && !$this->execute()) {
            return false;
        }
        $tmpFile = (string) $this->getTmpFile();
        if (!copy($tmpFile, $name)) {
            $this->_error = "Could not copy PDF from tmp location '$tmpFile' to '$name'";
            return false;
        }
        return true;
    }
public function saveAs($name)
    {
        if (!$this->getCommand()->getExecuted() && !$this->execute()) {
            return false;
        }
        $tmpFile = (string) $this->getTmpFile();
        if (!copy($tmpFile, $name)) {
            $this->_error = "Could not copy PDF from tmp location '$tmpFile' to '$name'";
            return false;
        }
        return true;
    }
public function saveAs ( $ name ) { if ( ! $ this -> getCommand ( ) -> getExecuted ( ) && ! $ this -> execute ( ) ) { return false ; } $ tmpFile = ( string ) $ this -> getTmpFile ( ) ; if ( ! copy ( $ tmpFile , $ name ) ) { $ this -> _error = "Could not copy PDF from tmp location '$tmpFile' to '$name'" ; return false ; } return true ; }
Execute the operation and save the output file

@param string $name of output file
@return bool whether the PDF could be processed and saved
Execute the operation and save the output file