Hello,
 
I am trying to build a document containing more issues. But I have a problem 
with iText MultiColumnText. I want to add one MultiColumnText object more than 
once, but the MultiColumnText object is added only once. 
 
Here is a small sample code:
 
     Document document = new Document();
     OutputStream out = new FileOutputStream("d:\\multicolumnsimple.pdf");
     PdfWriter.getInstance(document, out);
     document.open();
 
     MultiColumnText mct1 = new MultiColumnText(100);
     MultiColumnText mct2 = new MultiColumnText(100);
 
     mct1.addRegularColumns(document.left(), document.right(), 10f, 3);
     mct2.addRegularColumns(document.left(), document.right(), 10f, 3);
 
     mct1.addElement(new Paragraph("nddddddddddjhu sguvbfhebg ruhugrbghrb 
bzubrgfzwrb ru rig bgrwgninruuuuuuuuuuuuu bvq gwubvvvvvvvvvvvvvvvvvvvvv 
rquiobgrbqgvhlbqberhbvrh br rpqbzerbvrqvuoqervhrbvrqeubvueb vq 
qbrqgibvzebvezrbvzruiqbvzoeivhuqer uerierlqbvrhbgrhqebvfrb 
urbqerbvqerbvuebvrjebvrqehjbverbv urqbqerbvgheqbvjrvuerqbvgbgfr eruq 
qrubgeuqbguqerbguqrpebgubr qe qerhguqebgqeubgubrqubg qu qughqguqbubqubg "));

     mct2.addElement(new Paragraph("nddddddddddjhu sguvbfhebg ruhugrbghrb 
bzubrgfzwrb ru rig bgrwgninruuuuuuuuuuuuu bvq gwubvvvvvvvvvvvvvvvvvvvvv 
rquiobgrbqgvhlbqberhbvrh br rpqbzerbvrqvuoqervhrbvrqeubvueb vq 
qbrqgibvzebvezrbvzruiqbvzoeivhuqer uerierlqbvrhbgrhqebvfrb 
urbqerbvqerbvuebvrjebvrqehjbverbv urqbqerbvgheqbvjrvuerqbvgbgfr eruq 
qrubgeuqbguqerbguqrpebgubr qe qerhguqebgqeubgubrqubg qu qughqguqbubqubg "));
     
     document.add(mct1);
     document.add(mct1);
     document.close();
 
 
The mct1 appears only once. If I change the second mct1 to mct2, the columns 
will appear well.
 
Why can I add MultiColumnText only once?
 
Thank you in advance and best regards!
 
Peter

 
 
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to