Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

deepak379's avatar

Dompdf is exceeding excution time when I add Image in View.

Having Issue with dompdf in excution time.

<head>
    <link rel="stylesheet" href="pdf.css">
    <style>
        .page_break { page-break-before: always; }
    </style>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
</head>

@foreach ($news as $keys => $news)
    <h2 class="bg-dark text-danger">
        {{$keys}}
    </h2>
    @foreach ($news as $news)
        <h4 style="padding: 1em">
            {{$news->heading}}
        </h4>
        <div >
            {!!$news->content!!}
        </div>
        {{-- <img src="" class="img-fluid ${3|rounded-top,rounded-right,rounded-bottom,rounded-left,rounded-circle,|}" alt=""> --}}
    <a href="iasnow.in">Iasnow</a>
    @endforeach

@endforeach

Everything is working fine without image tags. Other wise

Symfony\Component\ErrorHandler\Error\FatalError
Maximum execution time of 60 seconds exceeded 

Is this problem due to image size Or image type?

0 likes
2 replies

Please or to participate in this conversation.