You are here

public function DocRaptorPDF::header in Forena Reports 7.5

Overrides DocumentTypeBase::header

File

src/DocumentFormats/DocRaptorPDF.php, line 107
PrincePDF PDF document via Prince XML @author davidmetzler

Class

DocRaptorPDF

Namespace

Drupal\forena\DocumentFormats

Code

public function header($r, $print = FALSE) {
  if (!$this->access) {
    return;
  }
  $r->html = '';
  if ($print) {
    header('Content-Type: ' . $this->content_type);
  }
}