Good day to ALL,
 
    I am using 2 cells in PdfPTable. In first cell i am using padding of 20. Second cell, am not able to use padding left when i am using Image as the second cell content. How i can give the padding? Can you respond to this mail as early as possible? Thanks in advance....
 
The example code i am using is,
 
   PdfPTable Q1_Question = new PdfPTable(1);
   PdfPTable Q1_Contents = new PdfPTable(2);
   Q1_Question.getDefaultCell().setBorder(Rectangle.NO_BORDER);
   Q1_Question.addCell(new Phrase("Q1. What is your age?", objRepUtil.font10B));
   Q1_Contents.getDefaultCell().setBorder(Rectangle.NO_BORDER);
   Q1_Contents.getDefaultCell().setPaddingLeft(20);
   Q1_Contents.addCell(new Phrase("40 years and below", objRepUtil.font10));
   Q1_Contents.addCell(pUncheckCell);

With Thanks and Regards,
Manivannan.B.

Phone: 91-44-22628080
           91-44-22623880  Extn 6164



 

Reply via email to