Quoting D S S Sampath Kumar <[EMAIL PROTECTED]>:

> 1. While define the XML tags for Table & Cells.  I couldn't able to set the
> Border color. My XML coding is 
>  
> <!-- table-->
>  <tag name="table" alias="TABLE_NOBORDER_2COLS_25PCT">
>   <attribute name="border" value="true" />
>   <attribute name="align" value="Left" />
>   <attribute name="width" value="25%" />
>   <attribute name="widths" value="50;50" />
>   <attribute name="tablefitspage" value="false" />
>   <attribute name="cellpadding" value="1" />
>   <attribute name="cellspacing" value="0" />
>   <attribute name="columns" value="2" />
>   <attribute name="offset" value="0" />
>   <attribute name="bordercolor" value="#000000"/>
>   <attribute name="backgroundcolor" value="#FFFFFF"/>
>  </tag>

I checked my code, but I don't see what could be wrong.
Try if this works as a workaround:
   <attribute name="red" value="0"/>
   <attribute name="green" value="0"/>
   <attribute name="blue" value="0"/>

> 2. This is related to No.4 in the previous mail. I have tagmap.xml file,
> which has the Tag mapping follows.
>  
> <!-- tagmap.xml-->
> <tagmap>
>  <tag name="itext" alias="ROOT" />
>  <tag name="newpage" alias="NEW_PAGE" />
>  <tag name="newline" alias="NEW_LINE" />
>  <tag name="paragraph" alias="PARA_LEFT_BOLD_BLACK_10">
>   <attribute name="leading" value="11" />
>   <attribute name="size" value="10" />
>   <attribute name="style" value="bold" />
>  </tag>
>  ...
>  
> </tagmap>
>  
> Another file values.xml which used tagmap.xml
> <!- -values.xml -->
> <ROOT>
// don't work with # SUM_ASSURED #
> <PARA_LEFT_BOLD_BLACK_10>The sum assured is <SUM_ASSURED />
> </PARA_LEFT_BOLD_BLACK_10>
> </ROOT>
>  
> Here I want to replace the <SUM_ASSURED /> to $ 86456.80.
> Can you tell me is it possible using XmlPeer?
>  
> My Code is ...
>  
> SAXParser parser = SAXParserFactory.newInstance().newSAXParser();

TagMap tagmap = new TagMap("tagmap.xml");
XmlPeer peer = new XmlPeer(ElementTags.CHUNK, "SUM_ASSURED");
peer.setContent("$ 86456.80");
tagmap.put(peer.getAlias(), peer);

> parser.parse("values.xml",
>   new SISAXmyHandler(document, tagmap));


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to