In the article "Set Page Size and Margins" you say: The units supported for setting the page size are as follows:point, cm, inch
but on the next line you have warning: In API, only point unit is supported.
and also: In XML, PageSize is not supported and you can only use numbers.
This confuses me, since in the example below you mention again:
//Set the margin Top. This value is in points but other units like
//inches and centi meters can also be used as 12inch or 12cm
marginInfo.Top = 72;
Could you give me an example on how I can set a margin values if my values are as follows:
var leftmargin = "1.2cm";
var topmargin = "1cm";
Thank you,
Alex