public function get($html) {
      $kernel_dir = $this->kerneldir;
      require __DIR__ . "/../Resources/config/dompdf.php";

      $this->pdf = new DOMPDF;

      foreach ($this->options as $optionKey => $optionValue) {
         $this->pdf->set_option($optionKey, $optionValue);
      }

      $this->pdf->load_html($html);
      $this->pdf->set_paper("a4", 'portrait');
      $this->pdf->render();

      $response = new Response();

      $response->setContent($this->pdf->output());
      $response->setStatusCode(200);
      $response->headers->set('Content-Type', 'application/pdf');

      return $response;
   }