You are here

public function TcpdfGenerator::stream in PDF generator API 8

Same name and namespace in other branches
  1. 2.x src/Plugin/PdfGenerator/TcpdfGenerator.php \Drupal\pdf_api\Plugin\PdfGenerator\TcpdfGenerator::stream()

Stream the PDF to the browser.

Overrides PdfGeneratorInterface::stream

File

src/Plugin/PdfGenerator/TcpdfGenerator.php, line 134
Contains \Drupal\pdf_api\Plugin\TcpdfGenerator.

Class

TcpdfGenerator
A PDF generator plugin for the mPDF library.

Namespace

Drupal\pdf_api\Plugin\PdfGenerator

Code

public function stream($filelocation) {
  $this->generator
    ->Output($filelocation, 'D');
}