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
tudorc  
#1 Posted : Monday, March 10, 2025 4:32:37 AM(UTC)
Quote
tudorc

Rank: Newbie

Groups: Registered
Joined: 3/7/2025(UTC)
Posts: 3
Romania

I'm trying to extract color and font information (name, color, weight) on characters and texts.

PdfTextInfo (obtained from PdfPage.Text.GetTextInfo()) only contains the text its self and rectangles.
PdfText (obtained from PdfPage.Text) has a GetFontSize(int index), but no family

I've seen older posts mention fonts, but in the latest library version (4.98.2704) I see no mentions of it. Has support for them been dropped or am I just missing something?
Paul Rayman  
#2 Posted : Thursday, March 13, 2025 5:46:10 AM(UTC)
Quote
Paul Rayman

Rank: Administration

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

Thanks: 8 times
Was thanked: 130 time(s) in 127 post(s)
Hello,

To retrieve this information, you need to inspect the page object.
Here are some examples
https://pdfium.patagames...rkingSDK_PageObjects.htm
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.