Hi,
My question is somewhat related to Prince’s target-counter and perhaps logging, but I can’t quite put the puzzle together…
So, for a given XML file I’d like to know where the rendered PDF changes pages.
With the DOM in mind it’s probably a little tricky to log exactly where a text node crosses/breaks from one page to another or where in between two elements a page break happened. Notations like XPath (insufficient for text node offsets) or EPUB CFI or Python lxml’s ObjectPath come to mind.
How would I go about logging/extracting the page break locations in the rendered PDF?
Thank you!
My question is somewhat related to Prince’s target-counter and perhaps logging, but I can’t quite put the puzzle together…
So, for a given XML file I’d like to know where the rendered PDF changes pages.
With the DOM in mind it’s probably a little tricky to log exactly where a text node crosses/breaks from one page to another or where in between two elements a page break happened. Notations like XPath (insufficient for text node offsets) or EPUB CFI or Python lxml’s ObjectPath come to mind.
How would I go about logging/extracting the page break locations in the rendered PDF?
Thank you!