<?php
header('Content-Type: text/html; charset=utf-8');
include __DIR__ . '/vendor/autoload.php';
use mikehaertl\wkhtmlto\Pdf;
$pdf = new Pdf('index.html');
if (!$pdf->send()) {
$error = $pdf->getError();
echo ("Ошибка");
}
else{
echo ("Работает");
}
?>