Groups
Sign in
Groups
PDFTron SDK
Conversations
Labels
About
Send feedback
Help
Way to detect Path collision
30 views
ElementReader
pdfrasterizer
text
Skip to first unread message
fraga
unread,
Jun 30, 2014, 7:04:45 PM
6/30/14
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 pdfne...@googlegroups.com
Hi, Is there any way to detect a path coliision with text?
I mean no the rect collision because maybe is a circle or other path
I'm using the elementReader and all i want to know is with characters are hidden by the paths!
Aaron
unread,
Jul 2, 2014, 7:10:25 PM
7/2/14
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 pdfne...@googlegroups.com
You should check for path colliding with text using Element.GetBBox():
http://www.pdftron.com/pdfnet/PDFNet/html/M_pdftron_PDF_Element_GetBBox.htm
You are correct that this method is, necessarily, an approximation. However, you should be able to detect whether the bounding boxes overlap, and use that to find whether characters are hidden by paths.
Reply all
Reply to author
Forward
0 new messages