Forum How do I...?

Add a drop shadow on a box/image

jmh
Does prince allow drop shadows? The CSS3 box-shadow property isn't listed in the prince documentation.

In particular, I need a drop shadow around some images in a document.
jim_albright
jmh
Those methods will only allow highlighting of only a few pixels wide. Would it somehow be possible to use SVG gradients for the effect?


This is for dynamically generating PDFs on a server. So it has to work with arbitrary image inputs and doesn't need web browser support.
mikeday
Prince doesn't support box-shadow or text-shadow yet. Many SVG gradients are supported, which might be enough to get a shadow effect with some experimentation.
somnath
Hi Mike,
Will these box-shadow properties supported by PrinceXML in any future release?

Thanks,
Somnath
mikeday
In any future release? Almost certainly! Not in the next release, though. :D
mikeday
The latest build now includes support for box-shadow! Finally!