title: Laravel - edit pdf with FPDF with a soruce file from s3
body: <p>Im working on a Laravel backend and I need to edit a PDF file allocated in a s3 bucket. When I try opening the PDF with <code>$pdf-&gt;setSourceFile($url)</code> I get an error saying <code>Given stream is not seekable!</code></p>
  
  <p>I can get the file contents using <code>Storage::disk(ENV('FILESYSTEM'))-&gt;url($url);</code>, and return it to the front end and that works fine, so I know the path and the permissions are correct. I would like to the content to the <code>setSourceFile($contents)</code> method, intead of the url. is there any way to do this?</p>
  
  <p>By the way, Im using the Laravel filesystem</p>
  
  <p><strong>Edit</strong>: I have tried copying the file from s3 to the server and then open it with PDF. I couldn't reach it, but I don't think that's a good way to do it.</p>