<?php

require_once('../../../composer/vendor/autoload.php');		
			
// Turn on the output buffer, prevents any output, which is required.
@ini_set('output_buffering', 'On');
if(ini_get('output_buffering') == "" || ini_get('output_buffering') == '0' || ini_get('output_buffering') == "Off") {
	$pdf_message = "<div style=\"padding:30px; background-color:#f1f1f1; color:#545454; font-family: Arial; border-radius:4px;\">";
	$pdf_message .= "<h3>PDF creation requires a PHP feature called <strong>Output Buffering</strong>, which is not enabled on this server.</h3>";
	$pdf_message .= "&nbsp;Please check with your hosting provider for instructions on how to enable.<br/><br/>";
	$pdf_message .= "Typical values will be <strong>1</strong> or <strong>On</strong>.";
	$pdf_message .= "</div>";
	die($pdf_message);
}
ob_start();
			
// PDF Rendering Flag.
$PAGE_IS_PDF = true;
$PDF_LIBRARY = "DOMPDF";

?>