mikehaertl\wkhtmlto\Image::send PHP Method

send() public method

Send image to client, either inline or as download (triggers image creation)
public send ( string | null $filename = null, boolean $inline = false ) : boolean
$filename string | null the filename to send. If empty, the PDF is streamed inline. Note, that the file extension must match what you configured as $type (png, jpg, ...).
$inline boolean whether to force inline display of the image, even if filename is present.
return boolean whether image was created successfully
    public function send($filename = null, $inline = false)
    {
        if (!$this->_isCreated && !$this->createImage()) {
            return false;
        }
        $this->_tmpImageFile->send($filename, $this->getMimeType(), $inline);
        return true;
    }