Hi, The only examples we have are here as the project is not really maintained anymore:
http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/test/java/org/apache/fop/render/rtf/rtflib/testdocs/ but these only show some basic table examples. I'm guessing you're using this in conjunction with FOP as opposed to using it separately? From taking a quick look at the code there seems to be another method in RtfTableRow which is newTableCell(int cellWidth, RtfAttributes attrs). Looking around it appears as though you can specify features such as padding and borders by adding them to the attrs list. For example, in BorderAttributesConverter there are the following: FOPRtfAttributes attrs = new FOPRtfAttributes(); attrs.set(IBorderAttributes.BORDER_COLOR, border.getBorderColor(side)); attrs.set(IBorderAttributes.BORDER_WIDTH, border.getBorderWidth(side, false) / 50); attributes.set(ITableAttributes.CELL_BORDER_TOP, attrs); and... double paddingPt = border.getPadding(side, false, null) / 1000.0; // Padding in twips int padding = (int) Math.round(paddingPt * FoUnitsConverter.POINT_TO_TWIPS); // Add padding to corresponding space (space-before or space-after) // if side == START or END, do nothing if (padding != 0) { if (side == CommonBorderPaddingBackground.BEFORE) { attributes.addIntegerValue(padding, RtfText.SPACE_BEFORE); } else if (side == CommonBorderPaddingBackground.AFTER) { attributes.addIntegerValue(padding, RtfText.SPACE_AFTER); } } Hope this helps, Regards, Robert Meyer > Date: Wed, 18 Jun 2014 03:30:02 -0700 > From: sreejith...@gmail.com > To: fop-users@xmlgraphics.apache.org > Subject: Formatting a RtfTable using RTFLib > > How to format a table (RtfTable) using RTFLib in java. Like setting padding, > aligning, border, font...I couldn't find any examples. Can some body give > some examples. > > Thanks in advance. > > > > -- > View this message in context: > http://apache-fop.1065347.n5.nabble.com/Formatting-a-RtfTable-using-RTFLib-tp40808.html > Sent from the FOP - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org >