You are here

public function DompdfGenerator::send in PDF generator API 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/PdfGenerator/DompdfGenerator.php \Drupal\pdf_api\Plugin\PdfGenerator\DompdfGenerator::send()

The name of the file to be downloaded.

Overrides PdfGeneratorInterface::send

File

src/Plugin/PdfGenerator/DompdfGenerator.php, line 127
Contains \Drupal\pdf_api\Plugin\DompdfGenerator.

Class

DompdfGenerator
A PDF generator plugin for the dompdf library.

Namespace

Drupal\pdf_api\Plugin\PdfGenerator

Code

public function send() {
  $this->generator
    ->stream("pdf", array(
    'Attachment' => 0,
  ));
}