diff --git a/src/Component/Utility/FillPdf.php b/src/Component/Utility/FillPdf.php
index 121b30d813485f3fddea4c19277c5d48b11753cd..197cded3aa7cf8b9222867a44aa8a575ef505ae4 100644
--- a/src/Component/Utility/FillPdf.php
+++ b/src/Component/Utility/FillPdf.php
@@ -30,13 +30,11 @@ class FillPdf {
     if (empty($pdftk_path)) {
       $pdftk_path = 'pdftk';
     }
-    $process = new Process($pdftk_path);
+    $process = new Process($pdftk_path . ' --version');
     $process->run();
 
-    if (in_array($process->getExitCode(), [126, 127], TRUE)) {
-      return FALSE;
-    }
-    return TRUE;
+    // Check there's no error code and the --version output includes "pdftk".
+    return !in_array($process->getExitCode(), [126, 127], TRUE) && strpos($process->getOutput(), 'pdftk') !== FALSE;
   }
 
   /**