topMargin to top of the header row whitespace
I'm adding an annotation link to a column on each row(table is a TOC page with the annotation row being the page) I'm getting the coordinates but I cannot account for some whitespace between the top of the header row.
pageUpperRightY = TOCPage.getMediaBox().getUpperRightY(); lowerLeftX= rowWidth+table.getMargin() -lastCellWidth; upperRightX = lowerLeftX + lastCellWidth; lowerLeftY = pageUpperRightY - ( (topMargin + table.getMargin()) +(currentRowNumber * rowHeight) + headerHeight); if(tocPage > 0) lowerLeftY += topMargin; upperRightY = lowerLeftY + (rowHeight);
the coordinate work perfect for the first TOC page.. The following page requires that I add the top margin to the lowerLeftY since the top of the header if further down that on the first page