diff --git a/fillpdf.module b/fillpdf.module
index da358a58f1fd77496f1804636ba4812b08e87c67..f1c4b245c5e1a79a30d4880ad7481717b5996874 100644
--- a/fillpdf.module
+++ b/fillpdf.module
@@ -337,6 +337,14 @@ function fillpdf_merge_pdf($fid, $nids = null, $webform_arr = null, $sample = nu
     }
   }
 
+  // Provide hook_fillpdf_merge_fields_alter() to let other modules
+  // alter fields before pdf generation.
+  $context = array(
+    'nodes' => $nodes,
+    'webforms' => $webforms,
+  );
+  drupal_alter('fillpdf_merge_fields_alter', $fields, $context);
+
   $output_name = preg_replace('/[^a-zA-Z0-9_]/', '', $fillpdf_info->title) .'.pdf';
   $pdf_data = _fillpdf_get_file_contents($fillpdf_info->url, "<front>");
   $fillpdf_remote_service = variable_get('fillpdf_remote_service', TRUE);