Hi there!
This is my first message here... i've been using iText to convert my
java JTable objects to PDF.

I have some problem with images inside PdfTable cells.

This is part of my code:

public PdfPCell getCell(String text, URL iconUrl) {
        PdfPCell cell = new PdfPCell();
        if (text != null) {
                Phrase phrase = new Phrase(text);
                cell.setPhrase(phrase);
        }
        
        if (iconUrl != null) {
                com.lowagie.text.Image image =
com.lowagie.text.Image.getInstance(iconUrl);
                cell.setImage(image);
        }
        return cell ;
}

When i got an image WITHOUT text, the image is scaled very BIG to fit
COLUMN WIDTH. When i got BOTH text and image, the text is never shown.

How can i fix the image size to correct ratio and make the text visible?
Why is it so difficult?

Thanx anyone who help me.

Bye,
Paolo Scaffardi


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to