Assuming that you're using php and you're on Windows operating system. If, after following these steps you find an error, to solve it you must go to your php.ini and uncomment the "extension=gd". That enables dompdf to visualize images! To the maker of this video I thank very much!