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

Free Support Forum - aspose.com

Textfragment at top of page

Per other comments in these forums, adding a text fragment and setting the position like this

textFragment.Position = New Position(1, 1)

puts the fragment at the bottom left corner of the page. We need to put a fragment at the very top of the page, So my question is how do you calculate the position values to achieve this result? Thanks.

Hi Karl,

Thanks for your inquiry. Please note as described in documentation that Point is measuring unit of Aspose Pdf and 72 points=1 Inch. In case of A4 page size, coordinates of lower left corner are (0,0) and top right corner are (594,841). You may use these coordinates accordingly to position your TextFragment. Hopefully it will help you to accomplish the task.

Please feel free to contact us for any further assistance.

Best Regards,