<?php
require_once __DIR__ . '\vendor\autoload.php';
$mpdf = new \Mpdf\Mpdf(['format' => 'A4-L', 'orientation' => 'L']);
$mpdf->SetDisplayMode('fullpage');
$id = $_GET['id'];
$path = "http://horse/pdf_single_horse.php?id=$id";
$a = file_get_contents($path);
$mpdf->WriteHTML("$a");
$mpdf->Output('report.pdf');
?>