Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

146
Vistas
How to include s3 url inside pdf files dompdf.

My s3 url is https://s3-us-west-2.amazonaws.com/bucket_name/test.png

its working fine on browser and showing image not found after including it on pdf file.   

$pdf = new \DOMPDFModule\View\Model\PdfModel(); 
$pdf->setOption("filename", $filename); 
$pdf->setOption("paperSize", "a4"); 
$pdf->setOption("paperOrientation", "landscape"); 
$dompdf = new \DOMPDF(); 
$dompdf->load_html($html);
$dompdf->render(); 
$pdfCode = $dompdf->output(); 
file_put_contents('path_to_pdf/test.pdf', $pdfCode); 
about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

If you use Laravel, you need to add this to your blade.

@php
    use Illuminate\Support\Facades\Storage;
    $content = Storage::get('vinylmaster.png');
    $imageData = base64_encode($content);
    $src = 'data:image/png;base64,' . $imageData;
@endphp

<img src="{{$src}}">

if you are not on Laravel, try Embedding images in a PDF file with PHP and DOMPDF

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda