logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

New Topic Post Reply
Options
Go to last post Go to first unread
gffranca  
#1 Posted : Friday, December 13, 2019 12:52:18 PM(UTC)
Quote
gffranca

Rank: Newbie

Groups: Registered
Joined: 11/1/2019(UTC)
Posts: 8
Brazil
Location: Rio de Janeiro

Thanks: 2 times
I want to find underlined words in a pdf. PdfTextObject class doesn't show such information. How can I get those?
Paul Rayman  
#2 Posted : Monday, December 16, 2019 12:37:27 AM(UTC)
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 111 time(s) in 108 post(s)
According to the PDF specification, text objects do not have such an attribute as "underlined word".
The underline effect is achieved by using specialized annotations.
Try the following code:

Code:

foreach (var annot in page.Annots)
{
    if (!(annot is PdfUnderlineAnnotation))
        continue;

    string text = page.Text.GetBoundedText(annot.Rectangle);
}
thanks 1 user thanked Paul Rayman for this useful post.
gffranca on 4/6/2020(UTC)
gffranca  
#3 Posted : Friday, April 3, 2020 9:05:46 AM(UTC)
Quote
gffranca

Rank: Newbie

Groups: Registered
Joined: 11/1/2019(UTC)
Posts: 8
Brazil
Location: Rio de Janeiro

Thanks: 2 times
My key and version dont give access to page.Annots, i havent renew it yet.

I have a Word document with underlined words that i need to export it like a PDF to work with it. Those underlined words will be reachable with page.Annots method?
It seems that whith page.Annots i can just find annotations made after it became a PDF. Thanks in advance.
Paul Rayman  
#4 Posted : Tuesday, April 14, 2020 8:23:25 AM(UTC)
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 111 time(s) in 108 post(s)
You can try this by switching the SDK to evaluation mode. Just delete the activation key. Also you can request a temporary key here https://patagames.com/request-trial/
Quick Reply Show Quick Reply
Users browsing this topic
New Topic Post Reply
Forum Jump  
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.