Thats not what Paulo means, your ColumnText has no dimensions, you need to be
doing something like this:-

ct.setSimpleColumn(0, 0, width, height);



kkdusi wrote:
> 
> 
> 
> Paulo Soares wrote:
>> 
>>>Where do you set the ColumnText dimensions?
>> 
>>>Paulo
>> 
>> I create a new Document and set the dimensions and Page Size. and each
>> page is uniquely loaded with contents specific to a customer.  I get some
>> part of the page from user submitted form as a html text which I need to
>> parse . I parse as the html tags(p,br,li,ul,span, some custom data tags)
>> come in any order . before parsing the page already contains some images
>> and header information specific to customer.
>> 
>> hope this helps. 
>> 
>> ----- Original Message ----- 
>> From: "kkdusi" <[EMAIL PROTECTED]>
>> To: <[email protected]>
>> Sent: Friday, March 16, 2007 8:11 PM
>> Subject: Re: [iText-questions] Column text Question.
>> 
>> 
>>>
>>> how can I use columnText to append text a document.. I get the following
>>> exception.
>>>
>>>
>>> com.lowagie.text.DocumentException: Irregular columns are not supported
>>> in
>>> composite mode.
>>> at com.lowagie.text.pdf.ColumnText.goComposite(Unknown Source)
>>> at com.lowagie.text.pdf.ColumnText.go(Unknown Source)
>>> at com.lowagie.text.pdf.ColumnText.go(Unknown Source)
>>>
>>> for the code below. I created a document before this adn added lot of
>>> content using PdfPTable.
>>>
>>> StyleSheet style = new StyleSheet();
>>>
>>> style.loadTagStyle("ul", "face", "Times");
>>> style.loadTagStyle("ul", "size", "25px");
>>> style.loadTagStyle("ul", "leading", "15f");
>>> style.loadTagStyle("li", "face", "Times");
>>> style.loadTagStyle("li", "size", "25px");
>>> style.loadTagStyle("li", "leading", "15f");
>>> style.loadTagStyle("p", "face", "Times");
>>> style.loadTagStyle("p", "size", "11px");
>>> style.loadTagStyle("p", "leading", "12f");
>>> style.loadTagStyle("p", "spacingAfter", "6x");
>>>
>>> /*
>>> HTMLWorker worker = new HTMLWorker(letterDocument);
>>> worker.setStyleSheet(style);
>>> worker.parse(new StringReader(readyJob.getContent()));
>>> */
>>>
>>> PdfContentByte cb = letterWriter.getDirectContent();
>>> ArrayList arr = HTMLWorker.parseToList(new
>>> StringReader(readyJob.getContent())
>>> ,style);
>>> ColumnText ct = new ColumnText(cb);
>>> for (int k = 0; k < arr.size(); ++k){
>>> Element element = (Element)arr.get(k);
>>>     if(element instanceof Paragraph){
>>>     Paragraph p = (Paragraph)element;
>>>     p.setSpacingAfter(6f);
>>>     }
>>> ct.addElement(element);
>>> }
>>> ct.go();
>>>
>>>
>>> Paulo Soares wrote:
>>>>
>>>> ColumnText is the way to go for precise formating. It doesn't matter if
>>>> it's
>>>> only one column.
>>>>
>>>> Paulo
>>>> ----- Original Message ----- 
>>>> From: "Nussbaum-Jones, Nina" <[EMAIL PROTECTED]>
>>>> To: <[email protected]>
>>>> Sent: Tuesday, September 05, 2006 12:48 PM
>>>> Subject: [iText-questions] Column text capabilities
>>>>
>>>>
>>>>>I noticed a lot more references to using column text for document
>>>>> structure.  There seems to be a great deal more flexibility with it,
>>>>> including the ability to do hanging indents.  Is this the way to go
>>>>> for
>>>>> more complicated formatting?  I don't need multiple columns on a page,
>>>>> but I need to generate a very specific document to match a
>>>>> pre-existing
>>>>> word document template.
>>>>>
>>>>>
>>>>>
>>>>> Thanks!!
>>>>>
>>>>> -Nina-
>> 
>> 
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> iText-questions mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>> Buy the iText book: http://itext.ugent.be/itext-in-action/
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Column-text-capabilities-tf2220363.html#a9526255
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to