Hi ,
i am generating the PDF with Tables using IText. I have a footer table
,i need to add the image to the footer.
My sample code is look like this,and i create a class as a subclass of *
PdfPageEventHelper*
Sample Code:
int L = Element.ALIGN_LEFT;
int C = Element.ALIGN_CENTER;
int R = Element.ALIGN_RIGHT;
int bottom=Element.ALIGN_BOTTOM;
int N = Font.NORMAL;
int B = Font.BOLD;
int I = Font.ITALIC;
PdfPTable foot = new PdfPTable(1);
for (int k = 1; k <= 1; ++k)
foot.addCell(createTableCell( " ", norm, 14, C, N, 1, 2f, 2f, false,
false, false,false,false,0));
com.lowagie.text.Image img1 =
com.lowagie.text.Image.getInstance(pdfImage, null, true);
/*/i supposed to image to above CustomerSignature
*
foot.addCell(createTableCell( getToken("Customer_signature1"), norm, 9,
L, B, 1, 2f, 2f, false, false, false,false,false,0));
foot.addCell(createTableCell( " ", norm, 14, C, N, 1, 2f, 2f, false,
false, false,false,false,0));
foot.addCell(createTableCell( getToken("Remark"), norm, 9, L, B, 1, 2f,
2f, false, false, false,false,false,0));
foot.setTotalWidth(page.getWidth() - document.leftMargin() -
(document.rightMargin()+80));
foot.writeSelectedRows(0, -1, document.leftMargin(),
document.bottomMargin(),
writer.getDirectContent());
*
Thanks & Regards
Suresh Yenugula.
Software Engineer, IT Services
*
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
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