Way to detect Path collision

29 views
Skip to first unread message

fraga

unread,
Jun 30, 2014, 7:04:45 PM6/30/14
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 PM7/2/14
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