public function FrxPrincePDF::__construct in Forena Reports 7.4
Same name and namespace in other branches
- 7.3 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') && forena_library_file('prince')) {
$this->p = new Prince($prince_path);
}
}