<?php
include "../vendor/autoload.php";

$html = file_get_contents('report1.html');

$header = '<div style="text-align: center;font-size: 20px; border-bottom: 1px #eeeeee solid; padding: 1px; ">';
$header.= '    <strong>THE MANAGEMENT REPORT TITLE</strong>';
$header.= '</div>';

$footer = '<div style="text-align: right;font-size: 10px; border-top: 1px #eeeeee solid; padding: 2px;">';
$footer.= '    Page <span>@{{ numPage }} of @{{ totalPages }}</span>';
$footer.= '</div>';

$report = new \Fireguard\Report\Report($html, $header, $footer);
$exporter = new \Fireguard\Report\Exporters\ImageExporter('', 'report1-to-image');
$file = $exporter->setOrientation('landscape')
            ->setFormat('PNG')
            ->generate($report);

header('Content-type: image/jpg');
header('Content-Length: ' . filesize($file));
@readfile($file);
Add example for export to image
Add example for export to image
