You are here

public function PrincePDF::header in Forena Reports 8

Default implementation to put in content type based headers.

Overrides DocumentBase::header

File

forena_pdf/src/FrxPlugin/Document/PrincePDF.php, line 101
PrincePDF

Class

PrincePDF
Provides PDF file exports using Prince XML

Namespace

Drupal\forena_pdf\FrxPlugin\Document

Code

public function header() {
  $this->headers['Content-Type'] = $this->content_type;
  $this->headers['Cache-Control'] = '';
  $this->headers['Pragma'] = '';
  $this->headers['Cache-Control'] = 'must-revalidate';
}