We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Margin size not making sense in relation to PageInfo page size

If I use a standard A4 page size:

		page.PageInfo = new Aspose.Pdf.PageInfo
			Width = Aspose.Pdf.PageSize.A4.Width,
			Height = Aspose.Pdf.PageSize.A4.Height,

the height is 842. So you would expect a margin of 200 on a table cell to be about a quarter of the page height, yet its actually rendering halfway down the page. Is the Margin on some different scale to the page? If so how can I convert between margin and page units?


Thank you for contacting support.

Please note that the basic measuring unit in Aspose.PDF for .NET is point, where 1 inch = 72 points and 1 cm = 1/2.54 inch = 0.3937 inch = 28.3 points. Moreover, both of these units use same scale, i.e. Points.

In case you are noticing difference then please share SSCCE code along with screenshots so that we may try to reproduce and investigate it in our environment.