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
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
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
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