title: Can I inject posted image files into PDF using dompdf?
body: <p>I have a form where users can fill input boxes. In some cases, they're allowed to select images too.</p>
  
  <p>The problem is, I don't want to save the image file somewhere on our server and give PDF the URL like this:</p>
  
  <pre><code>//Put uploaded file on public/uploads/ folder
  &lt;img src="{{ $imagePath }}" style="height: 50px; width: 50px;"&gt;
  </code></pre>
  
  <p>Instead, I'd like to inject uploaded image directly into PDF file. Something like this:</p>
  
  <pre><code>PDF::load($data, 'A4', 'portrait')-&gt;inject('image', Input::file('resim'))-&gt;output();
  //So I can reference it as {{ $image }} on PDF template, but image will be injected into PDF file
  </code></pre>
  
  <p>I'm beginner on PDF files and I'm not even sure if this is possible. </p>
  
  <p>If it's possible, can anyone give me some advices?</p>
  
  <p>Ps. I use DOMPDF package for Laravel 4. <a href="https://github.com/thujohn/pdf-l4" rel="nofollow">https://github.com/thujohn/pdf-l4</a></p>