'When I use dompdf in alpine I get a blank image

I use dompdf in Laravel for saving pdf.

I've used it well in the past.

A blank screen appears in alpine linux and php8 environments.

For reference, the version of alpine linux is 3.15.

Does anyone have the same problem as me?



Solution 1:[1]

You have to verify the following points.

  1. Have you installed the PHP extension GD? (Optional but recommended)
  2. Have you passed the image in base64 to dompdf? (It's mandatory for image processing).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Muhammad Latif