public function MpdfGenerator::stream in PDF generator API 8
Same name and namespace in other branches
- 2.x src/Plugin/PdfGenerator/MpdfGenerator.php \Drupal\pdf_api\Plugin\PdfGenerator\MpdfGenerator::stream()
Stream the PDF to the browser.
Overrides PdfGeneratorInterface::stream
File
- src/
Plugin/ PdfGenerator/ MpdfGenerator.php, line 170 - Contains \Drupal\pdf_api\Plugin\MpdfGenerator.
Class
- MpdfGenerator
- A PDF generator plugin for the mPDF library.
Namespace
Drupal\pdf_api\Plugin\PdfGeneratorCode
public function stream($filelocation) {
$this->generator
->Output($filelocation, 'F');
}