Hi. 
dear



I am using the itextsharp library to create 
pdf in C#, but found a quesion on PDFPCell()

 
if i use following code:
 
PdfPCell cell1 = new PdfPCell(img); 
//question: img is a img object, the img will not 
show in pdf.
 
PdfPCell cell1 = new PdfPCell(new 
Phrase('XXXXXXXXX',font));
//question: if the text is long and have warp. the 
spacing between each line is very small.
 
 
but when I change to code:
 

PdfPCell cell1 = new PdfPCell(); 
cell1.AddElement(img);
 

PdfPCell cell1 = new PdfPCell(); 
cell1.AddElement(new 
Phrase('XXXXXXXXX',font));
 
the img show correctly and the spacing between 
warp lines also is correctly.
 
I don't know why new PdfPCell(obj) can't 
work well.
Can you help me on this question
 
Thanks.

                                          
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to