Thanks Bruno!!!
The workaround I was using was dorky but effective enough for the form
letters I generate. The problem came from letters where the first
line ("Dear Whoever") had a flush-left margin but subsequent
paragraphs started with tabs but were justified.
My initial workaround was to discourage/disallow clients from
justifying the body of their letters; use left-aligned text, or
justify the entire line. One complained (understatement) so I made a
Chunk using the same font/size with spaces in it to approximate a tab;
sloppy but effective. Put on my own to-do list parsing the paragraphs
and using setIndent eventually which seems cleaner (they set the text
through a different interface; I read, parse, substitute, and generate
letters .. mail merge on steroids -- jobs can have hundreds of
different templates).
One thought I had: why does setIndent not exhibit the same problem?
Isn't it doing essentially the same thing? I was going to yank down
the sources and try to figure it out but then got in trouble for
obsessing on my "perfect tabs" so moved on.
Michael.
> After the first test, it was a "won't fix" situation. But afterwards, I
> did a second test, and now there's an "almost fixed" situation. The code
> sample you've made hasn't been thrown away yet. Maybe I'll find a way to
> make a "working fix" ;-)
>
> best regards,
> Bruno
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/