public function PdfGeneratorInterface::setter in PDF generator API 8
Same name and namespace in other branches
- 2.x src/Plugin/PdfGeneratorInterface.php \Drupal\pdf_api\Plugin\PdfGeneratorInterface::setter()
Set the various options for PDF.
Parameters
string $pdf_content: The HTML content of PDF.
string $pdf_location: The location where PDF needs to be saved.
bool $save_pdf: Stores the configuration whether PDF needs to be saved or shown inline.
string $paper_orientation: The orientation of PDF pages (portrait or landscape).
string $paper_size: The size of PDF paper (e.g. A4, B4, Letter).
string $footer_content: The text to be rendered as footer.
string $header_content: The text to be rendered as header.
string $path_to_binary: The path to binary file.
4 methods override PdfGeneratorInterface::setter()
- DompdfGenerator::setter in src/
Plugin/ PdfGenerator/ DompdfGenerator.php - Set the various options for PDF.
- MpdfGenerator::setter in src/
Plugin/ PdfGenerator/ MpdfGenerator.php - Set the various options for PDF.
- TcpdfGenerator::setter in src/
Plugin/ PdfGenerator/ TcpdfGenerator.php - Set the various options for PDF.
- WkhtmltopdfGenerator::setter in src/
Plugin/ PdfGenerator/ WkhtmltopdfGenerator.php - Set the various options for PDF.
File
- src/
Plugin/ PdfGeneratorInterface.php, line 45 - Contains \Drupal\pdf_api\Plugin\PdfGeneratorInterface.
Class
- PdfGeneratorInterface
- Defines an interface for PDF generator plugins.
Namespace
Drupal\pdf_api\PluginCode
public function setter($pdf_content, $pdf_location, $save_pdf, $paper_orientation, $paper_size, $footer_content, $header_content, $path_to_binary = '');