Welcome Guest Search | Active Topics | Sign In | Register

PDF Creator right-align text Options
Christian
Posted: Wednesday, November 6, 2013 7:40:41 AM
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#
eo_support
Posted: Wednesday, November 6, 2013 10:02:48 AM
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.aspx

You will need to use HorizontalAlign property.

Thanks!
Christian
Posted: Wednesday, November 6, 2013 10:22:40 AM
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.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.