can someone please show me documentation on this method?
i have the following line:
datatable.WriteSelectedRows(0, -1, document.LeftMargin, document.TopMargin, writer.DirectContent)
and it doesnt seem to matter whether its topmargin or bottommargin, it puts it at the bottom of the page.
The way absolute positioning works is that the Y coordinate you want needs to be subtracted from the max height of the document. What I’ve done is create a constant:
Because 72 is the number of points that creates an inch. Then you can create other constants based on this constant, such as:
etc.
So to place something at the top of the page, your Y coordinate should be:
Hope this helps 🙂