<?php

namespace Velis\Pdf\Renderer;

use Dompdf\Dompdf;

class DompdfRenderer extends PdfRenderer
{
    public function render(): string
    {
        $dompdf = new Dompdf($this->options);
        $dompdf->loadHtml($this->getContent());

        $dompdf->render();

        return $dompdf->output();
    }
}
