John,

John Kilbourne wrote:
> If I uncomment the lines below with "----->" and comment the
> lines with "xxxxxx->" (i.e. concatenate in a different
> order), the document does print "read this" in all the boxes,
> but does not print the text that is concatenated after "read
> this" (the UTF-8 sanskrit text).
> 
> [...]
>               for (int i=0;i<10;i++){
>                       ColumnText ct = new ColumnText(pcb);
> -------->          //String test = "read this";
> -------->          //test.concat(front.get(i));
> xxxxxxx->          String test =front.get(i);
> xxxxxxx->          test.concat("read this");
>                       Phrase myText;
>                       myText = new Phrase(test);
> [...]

A remark which is a bit off-topic but anyway:

You seem to think that test.concat(...) adds ... to the String object test
itself. This assumption is wrong as Java Strings are immutable (unless you
use some "dirty" tricks *g). test.concat(...) actually returns the
concatenation. So what you wanted to type was something along the lines of

        test = test.concat(...);

Maybe your issue partially is due to this misconception.

Regards,   Michael

--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/writing-text-with-a-specific-UTF-8-font-tp3416352p3417186.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to