<?php
require '../../vendor/autoload.php';

use Spipu\Html2Pdf\Html2Pdf;

ob_start();
require_once('preimp.php');
$html=ob_get_clean();

$html2pdf = new Html2Pdf('L','letter','es','UTF-8');
$html2pdf->writeHTML($html);
$html2pdf->output('factura_'.$_GET['numfact'].'.pdf');

?>