You are here

public function WkhtmltopdfGenerator::send in PDF generator API 8

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

The name of the file to be downloaded.

Overrides PdfGeneratorInterface::send

File

src/Plugin/PdfGenerator/WkhtmltopdfGenerator.php, line 148
Contains \Drupal\pdf_api\Plugin\WkhtmltopdfGenerator.

Class

WkhtmltopdfGenerator
A PDF generator plugin for the WKHTMLTOPDF library.

Namespace

Drupal\pdf_api\Plugin\PdfGenerator

Code

public function send() {
  $this
    ->preGenerate();
  $this->generator
    ->send($this->generator
    ->getPdfFilename(), true);
}