How to change stroke color and fill color at a time

Let’s say we have a color Red and we are trying to fill area annotation with red color with Opacity 0.5. after doing this fill color with opacity is working fine but opacity is also applied to the border of that annotation.
is it possible to get any color and fill the annotation with that color and with specific opacity without changing its border opacity?


TIP : border-color must not be same as the filled color.

Thank you,
Vivek Sonawane

Hi there,

Having a different opacity for fill and stroke is not supported in the PDF spec, so this is not possible to do.

Thanks!
Logan