John Pedersen wrote:
1. Why do the images look fuzzy in the pdf file ( just a bit, but I have had complaints...)
iText doesn't change the number of pixels in the images,
so the images are OK. Maybe you added the images to a cell
that scaled the images (thus changing the resolution).
2. I want to draw the images in a PdfPCell. I need to get hold of a PdfContentByte? Something like this:

        PdfPCell aspectTableCell = new PdfPCell();
        ColumnText cellCT = aspectTableCell.getColumn();
        PdfContentByte cellPCB = cellCT.getCanvas();
        PdfTemplate tp = cellPCB.createTemplate (width, height);
        DefaultFontMapper mapper = new DefaultFontMapper();
        mapper.insertDirectory("C:\\1\\AstroScript");
        Graphics2D g2 = tp.createGraphics(width, height, mapper);

but cellCT.getCanvas() returns null.

How can I get hold of a PdfContentByte for a PdfPCell?
I don't understand your code. Where did you get the inspiration to
do it this way? Why on earth do you need a ColumnText object?
Why don't you just create an Image instance using the PdfTemplate?
best regards,
Bruno

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to