Re: I am Not able to see colspan value in pdf adobe reader

aamudhala <[email protected]>
Newsgroups gmane.comp.java.lib.itext.general
Message-ID <[email protected]>
Hi,

I am attaching sample pdf image also.
<http://itext-general.2136553.n4.nabble.com/file/n4660308/testpdf.png> 


PdfPTable table = new PdfPTable(3);   
        
        
        PdfPHeaderCell c0 = new PdfPHeaderCell();
        c0.addElement(new Phrase("Customer",BOLD));
        c0.setHorizontalAlignment(PdfPHeaderCell.ALIGN_CENTER);
        c0.setName("c0");
        c0.setColspan(3);
        c0.setScope(PdfPHeaderCell.COLUMN);
        table.addCell(c0);
      
        
        PdfPHeaderCell c4 = new PdfPHeaderCell();
        c4.addElement(new Phrase("First Name",BOLD));
        c4.setName("c4");
        c4.setScope(PdfPHeaderCell.COLUMN);
        c4.addHeader(c0);
        table.addCell(c4);
        
        PdfPHeaderCell c5 = new PdfPHeaderCell();
        c5.addElement(new Phrase("Last Name",BOLD));
        c5.setName("c5");
        c5.setScope(PdfPHeaderCell.COLUMN);
        c5.addHeader(c0);
        table.addCell(c5);

        PdfPHeaderCell c6 = new PdfPHeaderCell();
        c6.addElement(new Phrase("Age",BOLD));
        c6.setName("c6");
        c6.setScope(PdfPHeaderCell.COLUMN);
        c6.addHeader(c0);
        table.addCell(c6);
        
        
        PdfPCell c7 = new PdfPCell();
        c7 = new PdfPCell(new Phrase("Jill",NORMAL));
        c7.addHeader(c0);
        c7.addHeader(c4);
        table.addCell(c7);

        PdfPCell c8 = new PdfPCell(new Phrase("Smith",NORMAL));
        c8.addHeader(c0);
        c8.addHeader(c5);
        table.addCell(c8);
        
        PdfPCell c9 = new PdfPCell(new Phrase("26.0",NORMAL));
        c9.addHeader(c0);
        c9.addHeader(c6);
        table.addCell(c9);
        
       
        PdfPCell c10 = new PdfPCell(new Phrase("Eve",NORMAL));
        c10.addHeader(c0);
        c10.addHeader(c4);
        table.addCell(c10);
        
        
        PdfPCell c11 = new PdfPCell(new Phrase("Jackson",NORMAL));
        c11.addHeader(c0);
        c11.addHeader(c5);
        table.addCell(c11);
        
        
        PdfPCell c12 = new PdfPCell(new Phrase("30.0",NORMAL));
        c12.setHorizontalAlignment(Element.ALIGN_CENTER);
        c12.addHeader(c0);
        c12.addHeader(c6);
        table.addCell(c12);

        
        
        document.add(table);
        
        
        
        document.close();

jaws reader is not reading it in a proper order.

please suggest me.....



--
View this message in context: http://itext-general.2136553.n4.nabble.com/I-am-Not-able-to-see-colspan-value-in-pdf-adobe-reader-tp4660200p4660308.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.