Hello :-),
while using your RTF-Classes, we've found an little typo-bug
* $Id: RtfRow.java,v 1.12 2005/03/17 10:24:12 hallm Exp $
class
com.lowagie.text.rtf.table.RtfRow private void importRow(Row row) {
this.cells = new ArrayList();
this.width =
this.document.getDocumentHeader().getPageSetting().getPageWidth() -
this.document.getDocumentHeader().getPageSetting().getMarginLeft() -
this.document.getDocumentHeader().getPageSetting().getMarginLeft();
this.width = (int) (this.width / 100 *
this.parentTable.getTableWidthPercent());
int cellRight = 0;
int cellWidth = 0;
for(int i = 0; i < row.columns(); i++) {
cellWidth = (int) (this.width / 100 *
this.parentTable.getProportionalWidths()[i]);
cellRight = cellRight + cellWidth;
Cell cell = (Cell) row.getCell(i);
RtfCell rtfCell = new RtfCell(this.document, this, cell);
rtfCell.setCellRight(cellRight);
rtfCell.setCellWidth(cellWidth);
this.cells.add(rtfCell);
}
}
correct would be:
------------------
this.width =
this.document.getDocumentHeader().getPageSetting().getPageWidth() -
this.document.getDocumentHeader().getPageSetting().getMarginLeft() -
this.document.getDocumentHeader().getPageSetting().getMarginRight();
thanks and have a nice day :-)
regina
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions