title: Laravel package html to pdf
body: <p>I've used the following package for converting html to pdf:</p>
  
  <p><a href="https://github.com/vsmoraes/pdf-laravel5" rel="nofollow noreferrer">https://github.com/vsmoraes/pdf-laravel5</a></p>
  
  <p>But when I use this it isn't looking at all. This is my original html pdf:</p>
  
  <p><a href="https://i.stack.imgur.com/FHjMg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FHjMg.png" alt="enter image description here"></a></p>
  
  <p>And when I've convert it, it looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/IFYmz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IFYmz.png" alt="enter image description here"></a></p>
  
  <p>Am I doing something wrong here?</p>
  
  <p>EDIT:</p>
  
  <pre><code>public function __construct(Pdf $pdf)
  {
      $this-&gt;pdf = $pdf;
  }
  public function download()
  {
      $html = view('administration.invoice')-&gt;render();
      return $this-&gt;pdf-&gt;load($html)-&gt;download();
  }
  </code></pre>