On 5/03/2012 19:31, Chad Snelson wrote:
> How do I set the hyphenation before the chunks are added to the paragraph?
If you're using XML Worker: you don't.
You set the hyphenation at the Chunk level instead of at the Paragraph
level (use getChunks()).
-
How do I set the hyphenation before the chunks are added to the paragraph?
Thanks,
Chad
-Original Message-
From: 1T3XT BVBA [mailto:i...@1t3xt.info]
Sent: Monday, March 05, 2012 11:27 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Using Hyphenation with
On 5/03/2012 19:00, Chad Snelson wrote:
> Do I need to handle this differently?
Paragraph.setHyphentation() sets the hyphenation for a paragraph for
every Chunk added to the Paragraph AFTER the hyphenation is set.
In your case, the Chunks are already present in the Paragraph at the
moment you set