public function FillPdfAdminFormHelper::getPdftkPath in FillPDF 5.0.x
Same name and namespace in other branches
- 8.4 src/Service/FillPdfAdminFormHelper.php \Drupal\fillpdf\Service\FillPdfAdminFormHelper::getPdftkPath()
Returns the configured path to the local pdftk installation.
Return value
string The configured path to the local pdftk installation.
Deprecated
in fillpdf:8.x-4.9 and is removed from fillpdf:8.x-5.0. Use the PdfBackend plugin's own methods.
See also
https://www.drupal.org/node/3060086
\Drupal\fillpdf\Plugin\PdfBackend\PdftkPdfBackend
File
- src/
Service/ FillPdfAdminFormHelper.php, line 134
Class
- FillPdfAdminFormHelper
- Various helper methods used in FillPDF administrative forms.
Namespace
Drupal\fillpdf\ServiceCode
public function getPdftkPath() {
$path_to_pdftk = $this->configFactory
->get('fillpdf.settings')
->get('pdftk_path');
if (empty($path_to_pdftk)) {
$path_to_pdftk = 'pdftk';
return $path_to_pdftk;
}
return $path_to_pdftk;
}