Skip to content
Snippets Groups Projects
Commit 6d640b33 authored by Kevin Kaland's avatar Kevin Kaland
Browse files

Issue #1430044: Add fallback value to fillpdf_pdftk_check().

parent 834e08f7
No related branches found
No related tags found
No related merge requests found
...@@ -1002,6 +1002,10 @@ function fillpdf_load($fid, $reset = FALSE) { ...@@ -1002,6 +1002,10 @@ function fillpdf_load($fid, $reset = FALSE) {
} }
function fillpdf_pdftk_check($pdftk_path = 'pdftk') { function fillpdf_pdftk_check($pdftk_path = 'pdftk') {
// An empty value means we should leave it to the PATH.
if (empty($pdftk_path)) {
$pdftk_path = 'pdftk';
}
$output = array(); $output = array();
$status = NULL; $status = NULL;
exec($pdftk_path, $output, $status); exec($pdftk_path, $output, $status);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment