diff --git a/apachesolr_attachments.admin.inc b/apachesolr_attachments.admin.inc
index fb4dd39..06d24c0 100644
--- a/apachesolr_attachments.admin.inc
+++ b/apachesolr_attachments.admin.inc
@@ -59,6 +59,28 @@ function apachesolr_attachments_settings() {
     '#description' =>  t("The name of the tika CLI application jar file, e.g. tika-0.3.jar or tika-app-0.4.jar."),
     '#default_value' => variable_get('apachesolr_attachments_tika_jar', 'tika-0.3.jar'),
   );
+  $form['apachesolr_attachments_pdfbox_path'] = array(
+    '#type' => 'textfield',
+    '#title' => t('pdfbox directory path'),
+    '#size' => 80,
+    '#maxlength' => 100,
+    '#description' =>  t("The full path to pdbfox directory.  All library jars must be in the same directory."),
+    '#default_value' => variable_get('apachesolr_attachments_pdfbox_path', ''),
+  );
+  $form['apachesolr_attachments_pdfbox_jar'] = array(
+    '#type' => 'textfield',
+    '#title' => t('pdfbox jar file'),
+    '#size' => 20,
+    '#description' =>  t("The name of the pdfbox CLI application jar file, e.g. pdfbox-app-1.5.0.jar"),
+    '#default_value' => variable_get('apachesolr_attachments_pdfbox_jar', 'pdfbox-app-1.5.0.jar'),
+  );
+  $form['apachesolr_attachments_pdfbox_enabled'] = array(
+    '#type'          => 'checkbox',
+    '#title'         => t('use pdfbox command line application for PDF parsing (for RTL languages such as Hebrew or Arabic)'),
+    '#default_value' => variable_get('apachesolr_attachments_pdfbox_enabled', FALSE),
+    '#description'   => t('enabling this will cause apachsolr attachments to use pdfbox CLI to parse PDF'),
+    '#disabled' => variable_get('apachesolr_attachment_extract_using','tika') == 'tika' ? FALSE : TRUE,
+  );
   $form['apachesolr_attachments-cron-settings'] = array(
     '#type' => 'fieldset',
     '#title' => t('Cron settings'),
@@ -448,11 +470,23 @@ function apachesolr_attachments_extract_using_tika($filepath) {
   $java_opts = ' ' . variable_get('apachesolr_attachments_java_opts', '-Dfile.encoding=UTF8');
   $cmd = escapeshellcmd($java . $java_opts) .' -cp '. escapeshellarg($tika_path) .' -jar '. escapeshellarg($tika) .' -t '. escapeshellarg($filepath);
 
+  if (variable_get('apachesolr_attachments_pdfbox_enabled', FALSE)) {
+    $pdfbox_path = realpath(variable_get('apachesolr_attachments_pdfbox_path', ''));
+    $pdfbox = realpath($pdfbox_path.'/'.variable_get('apachesolr_attachment_pdfbox_path', 'pdfbox-app-1.5.0.jar'));
+    if (!($pdfbox) || !is_file($pdfbox)) {
+      throw new Exception(t('Invalid path or filename for pdfbox application jar.'));
+    }
+    if (preg_match('/\.pdf$/i',$filepath)) {
+      $cmd = escapeshellcmd($java . $java_opts) .' -cp '. escapeshellarg($pdfbox_path) .' -jar '. escapeshellarg($pdfbox) .' ExtractText -console '. escapeshellarg($filepath);
+    }
+  }
+
   // Add a work-around for a MAMP bug + java 1.5.
   if (strpos(ini_get('extension_dir'), 'MAMP/')) {
     $cmd = 'export DYLD_LIBRARY_PATH=""; '. $cmd;
   }
 
+
   return shell_exec($cmd);
 }
 
diff --git a/apachesolr_attachments.install b/apachesolr_attachments.install
index 1ebcb29..4475cbd 100644
--- a/apachesolr_attachments.install
+++ b/apachesolr_attachments.install
@@ -12,6 +12,9 @@ function apachesolr_attachments_install() {
  * Implementation of hook_uninstall().
  */
 function apachesolr_attachments_uninstall() {
+  variable_del('apachesolr_attachment_pdfbox_path');
+  variable_del('apachesolr_attachments_pdfbox_jar');
+  variable_del('apachesolr_attachments_pdfbox_enabled');
   variable_del('apachesolr_attachment_tika_path');
   variable_del('apachesolr_attachments_tika_jar');
   variable_del('apachesolr_attachments_exclude_types');
