Below, a small jquery snippet that can auto set all pdf links of your page to open in a new page.

$(function(){
  $("a[href$=pdf]").attr('target', '_blank');
});

You can even easily extend that to apply doc, xls,ppt and other kind of files.