function ConvertToPdfInterface::convert in PDF using mPDF 8.2
Same name and namespace in other branches
- 8 src/ConvertToPdfInterface.php \Drupal\pdf_using_mpdf\ConvertToPdfInterface::convert()
Point of call to instantiate the mPDF library and call the generator functions for creating a PDF file.
Parameters
string $html: The html that will be converted into PDF content.
array $settings: Optional. Additional mPDF settings to add and overwrite existing ones Overwriting mPDF settings is useful when a different PDF settings are desired for different files per use case
array $options: An optional array containing usually the context variables used for token replacement
1 method overrides ConvertToPdfInterface::convert()
- ConvertToPdf::convert in src/
Conversion/ ConvertToPdf.php - Point of call to instantiate the mPDF library and call the generator functions for creating a PDF file.
File
- src/
ConvertToPdfInterface.php, line 27
Class
- ConvertToPdfInterface
- Provides an interface defining methods needed for PDF generation.
Namespace
Drupal\pdf_using_mpdfCode
function convert($html, $settings = [], $options = []);