You are here

public function PrincePDF::__construct in Forena Reports 7.5

File

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

Class

PrincePDF

Namespace

Drupal\forena\DocumentFormats

Code

public function __construct() {
  include_once 'sites/all/libraries/prince/prince.php';
  $this->content_type = 'application/pdf';
  $prince_path = variable_get('forena_pdf_prince_path', '/usr/local/bin/prince');
  if (class_exists('\\Prince') && forena_library_file('prince')) {
    $this->p = new \Prince($prince_path);
  }
}