Re: [iText-questions] Copying attributes between chunks

2006-03-28 Thread bruno
Paulo Soares wrote: Chunk original = Chunk copy = new Chunk(original); StringBuffer buf = copy.append(""); buf.setLength(0); buf.append("My new text."); Wouldn't it be better to add a clear method to class Chunk? br, Bruno --- This SF

Re: [iText-questions] Copying attributes between chunks

2006-03-28 Thread Daniel Farinha
Oh, the simplicity... :) That's brilliant. Many thanks Paulo. Daniel Paulo Soares wrote: Chunk original = Chunk copy = new Chunk(original); StringBuffer buf = copy.append(""); buf.setLength(0); buf.append("My new text."); --- This

RE: [iText-questions] Copying attributes between chunks

2006-03-28 Thread Paulo Soares
nt: Tuesday, March 28, 2006 3:37 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Copying attributes between chunks > > Is there an easy way to copy (text/font related) attributes > from a Chunk > to another? > I tried the Chunk copy constructor, but

[iText-questions] Copying attributes between chunks

2006-03-28 Thread Daniel Farinha
Is there an easy way to copy (text/font related) attributes from a Chunk to another? I tried the Chunk copy constructor, but that obviously copies the textual content as well as the attributes, and I didn't find a way to clear the text from the resulting Chunk. For the time being I'm doing a m