Hi,
To convert from mm to world coordinates you will need to do the following calculation:
worldx = 195 / 25.4 * 1016 = 7800
worldy = 50 / 25.4 * 1016 = 2000
(internal dpi is always 1016).
We will release an update later this with some additions to the XML format (can be added with MarkupCreateFromXML).
With this update you place the text by center position and also by using a percentage of the page size.
Sample XML code:
<?xml version="1.0" encoding="UTF-8"?>
<SCMarkupFormat>
<Header>
<Unit>mm</Unit>
</Header>
<Layers>
<layer name="Markup Layer" color="#00FF00" enabled='1'/>
</Layers>
<Elements>
<Element>
<type>Text</type>
<layer>0</layer>
<page>0</page>
<center x="195" y="50"/>
<font height='10' facename='Times New Roman'/>
<rotation>0</rotation>
<text>This is text</text>
<textcolor>#0000FF</textcolor>
</Element>
<Element>
<type>Text</type>
<layer>0</layer>
<page>0</page>
<center x="50%" y="50%"/>
<font height='10' facename='Times New Roman'/>
<rotation>0</rotation>
<text>Centered Text</text>
<textcolor>#FF0000</textcolor>
</Element>
</Elements>
</SCMarkupFormat>
First text is placed with center 195mm from left and 50mm from bottom.
Second text is placed with center at 50% of both page width and height.
In both cases the text font height is 10mm.
The XML format is a lot more flexible as you can also place other markup types, like for example stamps, barcodes, pictures and more.
Please don't hesitate to contact us if you have any questions.
Regards,
Support