Patagames Software Support Forum
»
Pdfium.Net SDK
»
Common Questions
»
How to get Font, Color properties for each character as well as each Word in PDF
Rank: Newbie
Groups: Registered
Joined: 10/12/2019(UTC) Posts: 3  Location: India
|
How to get Font, Color properties for each character as well as each Word in PDF
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
Hi In PDF documents, there is the concept of text objects. There are only text objects with properties and attributes, such as font or color. There is no difference between words or characters in this part. You can access text objects through the page.PageObjects collection. The hierarchy of page objects is here (upper-left corner): https://pdfium.patagames...um-Net-SDK-Reference.htm
|
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 10/12/2019(UTC) Posts: 3  Location: India
|
Hi Paul, thank you very much for your reply.
My requirement is to extract text (along with pdftext object properties) from the rectangle bound.
Currently i'm using your method "GetBoundedTextInfo" and "AnalyzeCharBox" (got from this forum) which returns list(of FS_RECTF) and text.
after that, i'm checking each FS_RECTF overlaps in any of the pdftextobject of current page.
please suggest that Is there any better way of getting pdftext objects of a rectangle bound.
|
|
|
|
|
|
Patagames Software Support Forum
»
Pdfium.Net SDK
»
Common Questions
»
How to get Font, Color properties for each character as well as each Word in PDF
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.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close