public function WkhtmltopdfGenerator::configBinary in PDF generator API 8
Same name and namespace in other branches
- 2.x src/Plugin/PdfGenerator/WkhtmltopdfGenerator.php \Drupal\pdf_api\Plugin\PdfGenerator\WkhtmltopdfGenerator::configBinary()
Set the path of binary file.
Parameters
string $path_to_binary: Path to binary file.
1 call to WkhtmltopdfGenerator::configBinary()
- WkhtmltopdfGenerator::setter in src/
Plugin/ PdfGenerator/ WkhtmltopdfGenerator.php - Set the various options for PDF.
File
- src/
Plugin/ PdfGenerator/ WkhtmltopdfGenerator.php, line 75 - Contains \Drupal\pdf_api\Plugin\WkhtmltopdfGenerator.
Class
- WkhtmltopdfGenerator
- A PDF generator plugin for the WKHTMLTOPDF library.
Namespace
Drupal\pdf_api\Plugin\PdfGeneratorCode
public function configBinary($path_to_binary) {
$this
->setOptions(array(
'binary' => $path_to_binary,
));
}