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

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
arun Posted: Tuesday, October 22, 2019 10:42:48 PM(UTC)
 
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.

Paul Rayman Posted: Tuesday, October 22, 2019 7:30:59 PM(UTC)
 
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

Class diagram
arun Posted: Monday, October 21, 2019 11:23:19 PM(UTC)
 
How to get Font, Color properties for each character as well as each Word in PDF