Underlined text not detected

Hi Team,

W have below simple text in microsoft word document. saved this file as pdf.

Hello ABC. How are you?


Our goal is to detect underlined text, which is not working using syncfusion(

Syncfusion.Pdf.AspNet 

22.1.34)


Attachment: Test_Underline_2fc360bf.pdf


1 Reply

IJ Irfana Jaffer Sadhik Syncfusion Team August 25, 2025 07:00 AM UTC

Hi Mahesh,


Thank you for your query.

The issue you're encountering is due to the nature of how the underline is represented in the PDF. In this case, the underline is part of a graphic shape and not a text property (like font style or decoration). Because of this, Syncfusion's PDF library (Syncfusion.Pdf.AspNet 22.1.34) cannot detect it as underlined text.

Currently, it is not possible to detect underlined text from an existing PDF document when the underline is rendered as a separate graphical element rather than being embedded as a text style.



Regards,

Irfana J.



Loader.
Up arrow icon