Polygon support

Posted by: gsnow on 18 November 2025, 11:28 am EST

  • Posted 18 November 2025, 11:28 am EST

    Is it possible to draw polygons for highlighting text? Do you use vertices?

  • Posted 19 November 2025, 12:41 am EST - Updated 19 November 2025, 2:04 am EST

    Hi Greg,

    Based on our understanding, you want to draw highlights using the vertices of the bounding rectangles rather than using text indices. This is supported - you can construct the highlight polygons from these rectangle vertices and then apply them through the DsPdfViewer highlight APIs.

    Please refer to the attached sample, which demonstrates how to apply highlights programmatically using the available highlight APIs.

    Please let us know if you require any further assistance.

    Attachment: TextSelection.zip

    Working:

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels