Quoting Sterling Bates <[EMAIL PROTECTED]>:

> The cell spacing method doesn't appear to work.

It has worked in the past.
I never noticed it didn't work anymore.

> Any ideas how to fix this?

Yes, add this method to com.lowagie.text.pdf.PdfCell:

/**
 * Gets a Rectangle that is altered to fit on the page.
 *
 * @param       top             the top position
 * @param       bottom  the bottom position
 * @return      a <CODE>Rectangle</CODE>
 */
    
    public Rectangle rectangle(float top, float bottom) {
        Rectangle tmp = new Rectangle(left(), bottom(), right(), top());
        tmp.setBorder(border);
        tmp.setBorderWidth(borderWidth);
        tmp.setBorderColor(color);
        tmp.setBackgroundColor(background);
        tmp.setGrayFill(grayFill);
        if (top() > top) {
            tmp.setTop(top);
            tmp.setBorder(border - (border & TOP));
        }
        if (bottom() < bottom) {
            tmp.setBottom(bottom);
            tmp.setBorder(border - (border & BOTTOM));
        }
        return tmp;
    }

The changes will be in the next release.
br,
Bruno


-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to