>
> Date: Sun, 07 Dec 2008 16:54:38 +0100
> From: 1T3XT info <[EMAIL PROTECTED]>
> Subject: Re: [iText-questions] Tagmaps and tables
> To: Post all your questions about iText here
>       <[email protected]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> [EMAIL PROTECTED] wrote:
>   
>> I am trying to align text in a table via a tagmap and having no luck - 
>> here is my tagmap for cell content:
>>     
>
> The tagmap functionality is old and no longer supported.
> Writing your own Handler (as is done in the book) is preferred.
>   
You can set text alignment within a table cell using the following 
attributes...

            <attribute name="horizontalalign" value="Left" />
            <attribute name="verticalalign" value="bottom" />

Values for horizontalalign are Left, Center, Right
Values for verticalalign are Top, Center, Bottom

Heres an example...

    <tag name="cell" alias="GRAYCELL_10">
            <attribute name="bordercolor" value="BLACK" />
            <attribute name="top" value="true" />
            <attribute name="bottom" value="true" />
            <attribute name="left" value="true" />
            <attribute name="right" value="true" />
            <attribute name="colspan" value="10" />
            <attribute name="horizontalalign" value="Center" />
            <attribute name="verticalalign" value="Bottom" />
            <attribute name="grayfill" value="0.65" />
    </tag>

HTH,

Steve

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to