Closed mahmadzaid closed 1 year ago
Indeed, because we call PathRenderer:draw
with values that were always initialized with a color, e.g. here:
One of the issue was the shadow color, though. We don't compute the exclusion, but just draw two boxes on top of each other. So if the fill color is made optional and a shadow is enabled, it might not lead to the expected result ;)
Ha, I guess it's not much of a compromise :)
Ha, I guess it's not much of a compromise :)
It seems it is possible in PDF Graphics to implement a "clipping path". That could be a potential way to only draw the relevant part of the shadow.
It seems it is possible in PDF Graphics to implement a "clipping path".
Confirming a clipping path works. I'll work on making a clean implementation now that I have the basics.
So this looks to be possible according to
PathRenderer:draw
but isn't reflected in the\framebox
and\roundbox
commands.