public function TcPdfv1::send in Entity Print 8.2
Send the Print contents to the browser.
Parameters
string $filename: The filename if we want to force the browser to download.
bool $force_download: TRUE to attempt to force the browser to download the PDF otherwise FALSE.
Throws
\Drupal\entity_print\PrintEngineException Thrown when Print generation fails.
Overrides PrintEngineInterface::send
File
- src/
Plugin/ EntityPrint/ PrintEngine/ TcPdfv1.php, line 94
Class
- TcPdfv1
- TCPDF plugin implementation.
Namespace
Drupal\entity_print\Plugin\EntityPrint\PrintEngineCode
public function send($filename, $force_download = TRUE) {
// If we have a filename then we force the download otherwise we open in the
// browser.
$this->tcpdf
->Output($filename, $force_download ? 'D' : 'I');
}