title: werneckbh/qr-code, can not generate .png QR image
body: <p>I am using "werneckbh/qr-code", trying to generate an QR code and store it in a PDF file. </p>
  
  <p>I installed all the dependencies. </p>
  
  <p>For now i copied the route from their documentation site </p>
  
  <p><a href="https://werneckbh.github.io/laravel-qr-code/text.html" rel="nofollow noreferrer">https://werneckbh.github.io/laravel-qr-code/text.html</a></p>
  
  <pre><code>Route::get('qr-code/examples/text', function () 
  {
      return  QRCode::text('Laravel QR Code Generator!')-&gt;png();   
  });  
  </code></pre>
  
  <p>but when I run it, all I get are just random characters, like on image bellow
  <a href="https://i.stack.imgur.com/nFy8b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nFy8b.png" alt="enter image description here"></a></p>
  
  <p>when I use "svg" format it works ok, but I can not save "svg" image in a PDF file.</p>
  
  <p>Any advice would be helpful. </p>