Round rectangle using Corner Radius

Product: Java SDK API

Product Version: Latest

Please give a brief summary of your issue:
(Think of this as an email subject)

Corner Radius to rectangle annotation not working

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)

I am trying to set corner radius to Rectangle annotation as below. But its not showing rounded corners as per the radius set. Could you please let me know what is the correct way to set the corner radius
int style = BorderStyle.e_solid;
int b_width = 1;
int b_hr = 3
int b_vr = 3
BorderStyle borderStyle = new BorderStyle(style, b_width, b_hr, b_vr);

Please provide a link to a minimal sample where the issue is reproducible:

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:


Hello Mohan,

Thank you for contacting us about this. Rounded corners have been recently introduced with the newer version of the SDK. Please see the code below on how to add them to your annotations:

Square sq = Square.Create(doc, new Rect(10, 200, 80, 300));
sq.SetColor(new ColorPt(0, 0, 0), 3);
Annot.BorderStyle bs = new Annot.BorderStyle(Annot.BorderStyle.Style.e_underline, 1, 1, 1);            
RefreshOptions op = new RefreshOptions();

Please let me know if this works for you, and if you have any further questions.

Thank you its working