You are here

public function MPDF::__construct in Forena Reports 8

File

forena_pdf/src/FrxPlugin/Document/MPDF.php, line 26
MPDF.inc PDF document via MPDF Library @author davidmetzler

Class

MPDF
@TODO: Determine the viability of keeping this given the troubles with MPDF.

Namespace

Drupal\forena_pdf\FrxPlugin\Document

Code

public function __construct() {

  // To do - use config variable of path to mpdf libs
  define('_MPDF_PATH', 'libraries/mpdf/');
  include_once 'libraries/mpdf/mpdf.php';
  $this->content_type = 'application/pdf';
}