Issue with underline and strikeout annotation

The code examples in the following article add area annotation instead of underline and strikeout annotation

You can use any PDF file to test it.

@tahir.manzoor

We are investigating this scenario. Your investigation ticket ID is ANNOTATIONJAVA-1459.

@tahir.manzoor

In the provided examples, the strikeout/underlining annotations are set for a PDF document with large-sized text, causing the strikeout/underlining to extend beyond the intended area. To address this, you have the flexibility to adjust the bounding area to a size of 1 pixel or larger. This adjustment can be made using points (Points) for precise positioning.

For instance, consider the following points: p1(80, 240), p2(240, 240), p3(80, 238), p4(240, 238). These points define the coordinates for the bounding area. Additionally, the line thickness will be set to 2 pixels in height, allowing for clear and visible strikeout/underlining annotations.