src/Pdf.php
public function toString()
    {
        if (!$this->_isCreated && !$this->createPdf()) {
            return false;
        }
        return file_get_contents($this->_tmpPdfFile->getFileName());
    }
public function toString()
    {
        if (!$this->_isCreated && !$this->createPdf()) {
            return false;
        }
        return file_get_contents($this->_tmpPdfFile->getFileName());
    }
Get the raw PDF contents (triggers PDF creation).
@return string|bool The PDF content as a string or `false` if the PDF
wasn't created successfully.