I newly install Dompdf in Laravel Project via Composer (composer require barryvdh/laravel-dompdf
). After enter the Command Terminal Reply Following Errors.
For Windows : Uncomment this line in your php.ini file
;extension=php_gd2.dll
If the above step doesn't work uncomment the following line as well:
;extension=gd2
Open your php.ini and uncomment this line:
;extension=php_gd2.dll
Using Manjaro(Arch) Linux:
$ sudo pacman -S php-gd
In file /etc/php/php-ini, add the line:
extension=gd.so
if you are working in PHP version 7.2 then you have to install
sudo apt-get install php7.2-gd
This worked for me:
composer require "ext-gd:*" --ignore-platform-reqs
On CentOS 7, try running following command:
sudo yum install php72u-gd.x86_64