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

Issue #1471328: Make flatten=0 work when using PHP/JavaBridge.

parent 29898a0d
No related branches found
No related tags found
No related merge requests found
......@@ -435,7 +435,18 @@ function fillpdf_merge_pdf($fid, $nids = NULL, $webform_arr = NULL, $sample = NU
drupal_set_message(check_plain(java_truncate((string) $e)), 'error');
drupal_goto(); // after setting error message
}
$data = java_values(base64_decode($fillpdf->toByteArray()));
try {
if ($flatten) {
$data = java_values(base64_decode($fillpdf->toByteArray()));
}
else {
$data = java_values(base64_decode($fillpdf->toByteArrayUnflattened()));
}
}
catch (JavaException $e) {
drupal_set_message(java_truncate((string)$e), 'error');
drupal_goto(); //after setting error message
}
break;
case 'pdftk': // Use PDFTK to merge the two
......
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