Rank: Member Groups: Member
Joined: 11/6/2013 Posts: 17
|
I am wondering if it is possible to right align text when using PdfTextLayer and a PdfTextContent? When setting positionmode to Offset it will write from left to right, is it possible to change this?
If not, is it possible to get the width of the PdfTextContent(so I can make a function which offsets in x automatically).
Programming language of choice is c#
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, PdfTextLayer or PdfTextContent are the lowest level objects and these two does not have any built-in layout capabilities. If you know the width of the text you can manually position it to right align it. Otherwise you have to use the higher layer object AcmXXXX objects to right align text. You can find more details here: http://www.essentialobjects.com/doc/4/acm/advanced%20formatting/advance_style.aspxYou will need to use HorizontalAlign property. Thanks!
|
Rank: Member Groups: Member
Joined: 11/6/2013 Posts: 17
|
Thank you. I ended up creating form elements and filled those out. Then I prevented the user to edit and see these. Works like a charm. Will definetely look into Acm objects as well.
|