Topics: Developer Forum
Feb 26, 2010 at 4:59 PM

I am looking for a way to parse an HTML document and report the physical position of each node. My goal is to determine where the document would reach the end of an 8.5x11 page, so I can insert a “page-break-after” into the HTML.

Can I do this with the Agility pack? There is a streamPosition property, but the documentation is not clear as to what this value represents.

Mar 5, 2010 at 9:13 PM

I doubt very much you could do this with the agility pack. You are talking about when the html is rendered (like in firefox) knowing the x and y pixel coordinates of where the elements get rendered?

The agility pack just parses through the raw html and does nothing with rendering.