You are here

public function FrxPrincePDF::__construct in Forena Reports 7.3

Same name and namespace in other branches
  1. 7.4 docformats/FrxPrincePDF.inc \FrxPrincePDF::__construct()

File

docformats/FrxPrincePDF.inc, line 11
FrxPrincePDF PDF document via Prince XML @author davidmetzler

Class

FrxPrincePDF
@file FrxPrincePDF PDF document via Prince XML @author davidmetzler

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') && file_exists($prince_path)) {
    $this->p = new Prince($prince_path);
  }
}