Index: extlink.css
===================================================================
--- extlink.css	(revision 1183)
+++ extlink.css	(working copy)
@@ -7,4 +7,9 @@
   background: url(mailto.png) right center no-repeat;
   padding-right: 12px;
   zoom: 1;
+}
+span.pdf {
+  background: url(pdf.png) right center no-repeat;
+  padding-right: 12px;
+  zoom: 1;
 }
\ No newline at end of file
Index: extlink.js
===================================================================
--- extlink.js	(revision 1183)
+++ extlink.js	(working copy)
@@ -40,15 +40,20 @@
   // available in jQuery 1.0 (Drupal 5 default).
   var external_links = new Array();
   var mailto_links = new Array();
-  $("a:not(." + Drupal.settings.extlink.extClass + ", ." + Drupal.settings.extlink.mailtoClass + ")", context).each(function(el) {
+  var pdf_links = new Array();
+  $("a:not(." + Drupal.settings.extlink.extClass + ", ." + Drupal.settings.extlink.mailtoClass + ", ." + Drupal.settings.extlink.pdfClass + ")", context).each(function(el) {
     try {
       var url = this.href.toLowerCase();
+      //console.log(url);
       if (url.indexOf('http') == 0 && (!url.match(internal_link) || (extInclude && url.match(extInclude))) && !(extExclude && url.match(extExclude))) {
         external_links.push(this);
       }
       else if (url.indexOf('mailto:') == 0) {
         mailto_links.push(this);
       }
+      else if (url.indexOf('pdf') != -1) {
+        pdf_links.push(this);
+      }
     }
     // IE7 throws errors often when dealing with irregular links, such as:
     // <a href="node/10"></a> Empty tags.
@@ -77,6 +82,16 @@
       $(mailto_links).not($(mailto_links).find('img').parents('a')).addClass(Drupal.settings.extlink.mailtoClass).each(function() { if ($(this).css('display') == 'inline') $(this).after('<span class=' + Drupal.settings.extlink.mailtoClass + '></span>'); });
     }
   }
+  
+  if (Drupal.settings.extlink.pdfClass) {
+    // Apply the "pdf" class to all pdf links not containing images.
+    if (parseFloat($().jquery) < 1.2) {
+      $(pdf_links).not('[img]').addClass(Drupal.settings.extlink.pdfClass).each(function() { if ($(this).css('display') == 'inline') $(this).after('<span class=' + Drupal.settings.extlink.pdfClass + '></span>'); });
+    }
+    else {
+      $(pdf_links).not($(pdf_links).find('img').parents('a')).addClass(Drupal.settings.extlink.pdfClass).each(function() { if ($(this).css('display') == 'inline') $(this).after('<span class=' + Drupal.settings.extlink.pdfClass + '></span>'); });
+    }
+  }
 
   if (Drupal.settings.extlink.extTarget) {
     // Apply the target attribute to all links.
Index: extlink.module
===================================================================
--- extlink.module	(revision 1183)
+++ extlink.module	(working copy)
@@ -28,9 +28,10 @@
     'extInclude'    => variable_get('extlink_include', ''),
     'extAlert'      => variable_get('extlink_alert', 0),
     'extAlertText'  => variable_get('extlink_alert_text', 'This link will take you to an external web site. We are not responsible for their content.'),
-    'mailtoClass'   => variable_get('extlink_mailto_class', 'mailto'))), 'setting'
+    'mailtoClass'   => variable_get('extlink_mailto_class', 'mailto'),
+    'pdfClass'   => variable_get('extlink_pdf_class', 'pdf'))), 'setting'
   );
-  if (variable_get('extlink_class', 'ext') == 'ext' || variable_get('extlink_mailto_class', 'mailto') == 'mailto') {
+  if (variable_get('extlink_class', 'ext') == 'ext' || variable_get('extlink_mailto_class', 'mailto') == 'mailto' || variable_get('extlink_pdf_class', 'pdf') == 'pdf') {
     drupal_add_css($path . '/extlink.css');
   }
 }
@@ -53,6 +54,14 @@
     '#default_value' => variable_get('extlink_mailto_class', 'mailto'),
     '#description' => t('Places an !icon icon next to mailto links.', array('!icon' => theme_image(drupal_get_path('module', 'extlink') .'/mailto.png'))),
   );
+  
+  $form['extlink_pdf_class'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Add icon to pdf links'),
+    '#return_value' => 'pdf',
+    '#default_value' => variable_get('extlink_pdf_class', 'pdf'),
+    '#description' => t('Places an !icon icon next to pdf links.', array('!icon' => theme_image(drupal_get_path('module', 'extlink') .'/pdf.png'))),
+  );
 
   $form['extlink_subdomains'] = array(
     '#type' => 'checkbox',
