You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfium
Hello!
I'm trying to implement a TextInRectangle functionality (moving the mouse on a page, left click on, and on mouse up select the text in the generated rectangle).
For this I am using at this moment GetBoundedText available from PDFium but the results are not what one would expect. Sometimes it actually does not give any result at all, but the rectangle contains page text.
Has anyone tried to use this methods, or is there any best practice when it comes to text selection via PDFium?
Marius.
Lei Zhang
unread,
Jan 28, 2016, 3:58:54 AM1/28/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to marius, pdfium
Can other PDF viewers highlight the text in question? Can you check
with FPDFText_GetCharIndexAtPos() and see if it finds any text there?
How about if you loop through all the characters with
FPDFText_CountChars() and FPDFText_GetUnicode() ?