$options['pdftk'].='<div class="messages warning">'.t('pdftk is not properly installed.').'</div>';
$options['pdftk'].='<div class="messages warning">'.t('pdftk is not properly installed.').'</div>';
}
}
unset($output);
unset($status);
$form['fillpdf_service']=array(
$form['fillpdf_service']=array(
'#type'=>'radios',
'#type'=>'radios',
...
@@ -75,12 +71,26 @@ function fillpdf_settings($form, &$form_state) {
...
@@ -75,12 +71,26 @@ function fillpdf_settings($form, &$form_state) {
'http'=>t('Do not use HTTPS'),
'http'=>t('Do not use HTTPS'),
),
),
);
);
$form['fillpdf_pdftk_path']=array(
'#type'=>'textfield',
'#title'=>t('Configure path to pdftk'),
'#description'=>t("If Fill PDF is not detecting your pdftk installation, you can specify the full path to the program here. Include the program name as well. For example, <em>/usr/bin/pdftk</em> is a valid value. You can almost always leave this field blank. If you should set it, you'll probably know."),
// Use exec() to call pdftk (because it will be easier to go line-by-line parsing the output) and pass $content via stdin. Retrieve the fields with dump_data_fields.
drupal_set_message(t('pdftk not properly installed.'),'error');
drupal_set_message(t('pdftk not properly installed.'),'error');
returnarray();
returnarray();
}
}
elseif(count($output)===0){
// Use exec() to call pdftk (because it will be easier to go line-by-line parsing the output) and pass $content via stdin. Retrieve the fields with dump_data_fields.