mpdf / mpdf

PHP library generating PDF files from UTF-8 encoded HTML
https://mpdf.github.io
GNU General Public License v2.0
4.4k stars 1.07k forks source link

CSS 'drop-shadow' is not working #1095

Closed totoberg123 closed 5 years ago

totoberg123 commented 5 years ago

Hi all,

At this moment I want mpdf to create a PDF-file from a html page. I have done this succesfully, however one thing is not working. It is not displaying the outer shadow of an image.

Example: http://jsfiddle.net/jaq316/EKNtM/

Is there a reason for this not to work, or is there any known workaround?

Edit:

finwe commented 5 years ago

See https://mpdf.github.io/css-stylesheets/supported-css.html try box-shadow which should be supported on block elements.

totoberg123 commented 5 years ago

I have tried the box-shadow on a div.

Random HTML tester result: image

mPDF result: image

As you can see the 'glow' is only shown on the right side of the box.

CSS: box-shadow: 0px 0px 20px 1px grey;

finwe commented 5 years ago

Create a new issue with bug report, please. Just don't expect this to be fixed any time soon. See https://github.com/mpdf/mpdf/issues/399#issuecomment-509927758

totoberg123 commented 5 years ago

https://github.com/mpdf/mpdf/issues/1096

buzi commented 1 year ago

Has this been resolved ? im having the same issue.

totoberg123 commented 1 year ago

@buzi Unfortunately, no. Check #1096.