Sabrina Sarra wrote:
Hi,
I'm using itext to create pdf from .net and I created my pages by
using the object PDFContentsByte,
but only now I note that it doesn't have the option ALIGN_JUSTIFIED.
How can I do to justify the text without using paragraph or prhase?
Is there a solution?
You weren't subscribed when you posted your question.
It was held by the list server at SourceForge and it seems
that this service was constipated: today I received over 200
mails dating from december (I removed all the SPAM mails
so that they don't reach the list).
Anyway: the high-level objects use PdfContentByte to do
the justifying. If you don't want to use high-level objects,
you need to the math done by iText yourself.
Calculate the length of the String you want to add,
compare this length with the available width and
change the word and char spacing until the text is justified.
It would be easier to use class ColumnText to do this though.
br,
Bruno
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions