Given a list of HTML block elements, return a list of their positions in the generated PDF (page numbers and top and left coordinates). This will simplify digitally signing Prince-generated PDFs using third party packages. This could also have other uses.
Given the following HTML,
return a list of positions for the elements that have data-princeid attribute:
Given the following HTML,
<div data-princeid="sig12345">text 1</div>
... more ...
<div data-princeid="sig12346">text 2</div>
return a list of positions for the elements that have data-princeid attribute:
[
{princeid:"sig12345", page: 3, left: 123, top: 234, text: "text 1"},
{princeid:"sig12346", page: 4, left: 212, top: 324, text: "text 2"}
]