public function TcpdfGenerator::save in PDF generator API 2.x
Same name and namespace in other branches
- 8 src/Plugin/PdfGenerator/TcpdfGenerator.php \Drupal\pdf_api\Plugin\PdfGenerator\TcpdfGenerator::save()
Generate and save the PDF at a specific location.
Parameters
string $location: The location (both absolute/relative) path to save the generated PDF to.
Overrides PdfGeneratorInterface::save
File
- src/
Plugin/ PdfGenerator/ TcpdfGenerator.php, line 120 - Contains \Drupal\pdf_api\Plugin\TcpdfGenerator.
Class
- TcpdfGenerator
- A PDF generator plugin for the mPDF library.
Namespace
Drupal\pdf_api\Plugin\PdfGeneratorCode
public function save($location) {
$this->generator
->Output($location, 'F');
}