Hello,
I'm trying to figure out what units the margins are in for Dynamic pdf.
I thought it would be in "points" just as everything else is, but I seem to be incorrect.
I'm using this C# code to calculate my Margins:
objPage.Dimensions.RightMargin = _rightMargin / _pageWidth * _pdfWidth ;
etc for the other 3 margins
where _rightMargin is the right margin in mm, _pageWidth is the page width in mm, and _pdfWidth is the width of the pdf in points.
I found the LayoutGrid option, and printed using it, but I've found that the edge of the grid is not at the same millimeter location I would expect. ( used 4 mm as an input, then measured and it was not 4mm on that side)
Any ideas where I might be going wrong?
I also tried using _rightMargin (in mm) * 2.835 (1mm = 2.835 pts) and came up with the same number I was using, and the grid is still in the incorrect place.
Thanks in advance.