<?php
/**
 * @package Divine_Agreement_System
 * @author Aditya Singh
 */


if (!defined('ABSPATH')) {
    exit;
}

if (class_exists('Dompdf\Dompdf')) {
    return;
}


$dompdf_path = DIVINE_AGREEMENT_PLUGIN_DIR . 'vendor/dompdf/';


if (file_exists($dompdf_path . 'autoload.inc.php')) {
    require_once $dompdf_path . 'autoload.inc.php';
} else {
    
    require_once __DIR__ . '/dompdf-slim.php';
}
