/**
  * View or download the invoice.
  * @param $download
  */
 public function view()
 {
     if (!$this->exists()) {
         wp_die(sprintf(__('Invoice with invoice number %s not found. First create invoice and try again.', 'woocommerce-pdf-invoices'), $this->formatted_number), '', array('response' => 200, 'back_link' => true));
     }
     parent::view();
 }