function fillpdf_pdftk_check in FillPDF 7.2
Same name and namespace in other branches
- 7 fillpdf.module \fillpdf_pdftk_check()
1 call to fillpdf_pdftk_check()
- fillpdf_execute_parse in ./fillpdf.module
- Utility function to allow other functions to parse PDFs with the various methods in a consistent way.
File
- ./fillpdf.module, line 1107
- Allows mappings of PDFs to site content
Code
function fillpdf_pdftk_check($pdftk_path = 'pdftk') {
if (empty($pdftk_path)) {
$pdftk_path = 'pdftk';
}
$output = array();
$status = NULL;
exec($pdftk_path, $output, $status);
if (in_array($status, array(
126,
127,
))) {
return FALSE;
}
return TRUE;
}