Skip to content

Commit

Permalink
add border stroke for TYPE_CROS check fields
Browse files Browse the repository at this point in the history
  • Loading branch information
dadza committed Jan 23, 2025
1 parent 4821449 commit ae09768
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ public static PdfAppearance getAppearanceRadioCross(boolean on, PdfWriter writer
//draw surrounding rectangle
//"1 1 "+(width-2)+" "+(height-2)+" re"
app.rectangle(1, 1, box.getWidth() - 2, box.getHeight() - 2);
app.stroke();

//"W"
app.clip();
Expand Down

1 comment on commit ae09768

@mkl-public
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect,

  • the rectangle must only be stroked if a solid stroke border is selected while you stroke unconditionally,
  • the clip call must be before the stroke call if any, and
  • the newPath call in case of the on state must be dropped if the rectangle is stroked.

Please sign in to comment.