protected function createPdf()
    {
        if ($this->_isCreated) {
            return false;
        }
        $command = $this->getCommand();
        $fileName = $this->getPdfFilename();

        $command->addArgs($this->_options);
        foreach ($this->_objects as $object) {
            $command->addArgs($object);
        }
        $command->addArg($fileName, null, true);    // Always escape filename
        if (!$command->execute()) {
            $this->_error = $command->getError();
            if (!(file_exists($fileName) && filesize($fileName) !== 0 && $this->ignoreWarnings)) {
                return false;
            }
        }
        $this->_isCreated = true;
        return true;
    }
protected function createPdf()
    {
        if ($this->_isCreated) {
            return false;
        }
        $command = $this->getCommand();
        $fileName = $this->getPdfFilename();

        $command->addArgs($this->_options);
        foreach ($this->_objects as $object) {
            $command->addArgs($object);
        }
        $command->addArg($fileName, null, true);    // Always escape filename
        if (!$command->execute()) {
            $this->_error = $command->getError();
            if (!(file_exists($fileName) && filesize($fileName) !== 0 && $this->ignoreWarnings)) {
                return false;
            }
        }
        $this->_isCreated = true;
        return true;
    }
protected function createPdf ( ) { if ( $ this -> _isCreated ) { return false ; } $ command = $ this -> getCommand ( ) ; $ fileName = $ this -> getPdfFilename ( ) ; $ command -> addArgs ( $ this -> _options ) ; foreach ( $ this -> _objects as $ object ) { $ command -> addArgs ( $ object ) ; } $ command -> addArg ( $ fileName , null , true ) ; // Always escape filename if ( ! $ command -> execute ( ) ) { $ this -> _error = $ command -> getError ( ) ; if ( ! ( file_exists ( $ fileName ) && filesize ( $ fileName ) !== 0 && $ this -> ignoreWarnings ) ) { return false ; } } $ this -> _isCreated = true ; return true ; }
Run the Command to create the tmp PDF file

@return bool whether creation was successful
Run the Command to create the tmp PDF file