SVG gradient images render
kisadesu opened this issue · comments
Hello,
I need to export an image in svg with a gradient, but when I try to download the pdf take me this message:
Fatal error: Class 'Sabberworm\CSS\Parser' not found in C:\xampp\htdocs\PruebasPDF - copia\dompdf\lib\php-svg-lib\src\Svg\Tag\StyleTag.php on line 19
It's possible with this library convert the image?
How?
Thank you!
How did you install php-svg-lib
? Did you use composer? Is it possible it didn’t install the dependencies correctly? If you didn’t use composer, make sure you have an autoloader and have configured it correctly to load PHP-CSS-Parser.
I already have that library (php-svg-lib) when I installed dompdf. I don't have the problem with a svg image without gradient. I don't know..
Thank you for your faster response.
But how did you install? Using composer? Can you see if you find php-css-parser
in your lib
folder?