Use this snippet to open a PDF file in a new window Drupal 7