You are here

public function PdfExportMpdfProcessor::loadLibrary in PDF Export 7

Initializes the mPDF plugin.

Overrides PdfExportProcessorInterface::loadLibrary

File

pdf_export_mpdf/includes/PdfExportMpdfProcessor.inc, line 13
PDF Export: mPDF processor class.

Class

PdfExportMpdfProcessor
@file PDF Export: mPDF processor class.

Code

public function loadLibrary() {
  $library = libraries_load('mpdf');
  if (!$library['loaded']) {
    return FALSE;
  }
  $this->library = new mPDF('utf-8', 'A4');
  return TRUE;
}