public function save($dest, $html_templates = array())
 {
     if ($this->template_name == "") {
         wp_die(__('Whoops, no template found. Please select a template on the Template settings page first.', 'woocommerce-pdf-invoices'));
     }
     $template_dir_name = $this->get_template_dir($this->template_name);
     $html_templates = array("header" => $template_dir_name . 'header.php', "footer" => $template_dir_name . 'footer.php', "body" => $template_dir_name . 'body.php', "style" => $template_dir_name . 'style.css');
     parent::save($dest, $html_templates);
     return $this->full_path;
 }
 public function save($dest, $html_templates = array())
 {
     if (empty($this->template_name)) {
         return "";
     }
     $template_dir_name = $this->get_template_dir($this->template_name);
     $html_templates = array("header" => $template_dir_name . 'header.php', "footer" => $template_dir_name . 'footer.php', "body" => $template_dir_name . 'body.php', "style" => $template_dir_name . 'style.css');
     parent::save($dest, $html_templates);
     return $this->full_path;
 }