Rewrote pdf printout to Drupal 7.x