Hi,
 
For exemple, I use this type of code (javascript) :
 
    var style  = new 
Packages.com.lowagie.text.rtf.style.RtfFont(Font,FontSize,this.getFontStyle(format));
    style.setColor(this.getColor(FontColor));
    var chunk1 = new iText.Chunk(Text,style);
    chunk1.setBackground(this.getColor(BkColor));
    var par = new iText.Paragraph(chunk1);
    par.setAlignment(this.getAlignment(format));
    par.setIndentationLeft(leftIndent);
 
All the stuff is great except the fact that when I add this Paragraph(par) to 
my document, it is following by an automatic line breaker (that is normal for a 
paragraph), and I don't want this line breaker. So I tried to use the Phrase 
class instead of the Paragraph one. However there is no method like 
setAlignement or setIndentation for a Phrase. How can I do to place just a 
Phrase with the correct alignment (which is left by default in Phrase)?
 
I had already tried to place the backspace ASCII character just after the 
Paragraph, but it seems not recognized by the document.
 
Thanks,
Best regards,
 
Loïc Le Doyen

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Howard Shank
Sent: lundi 18 août 2008 16:23
To: Post all your questions about iText here
Subject: Re: [iText-questions] Alignement in a Chunk or Phrase for RTFdocument


Please provide sample code showing what you are attempting to do.

Thanks
Howard Shank


----- Original Message ----
From: "Le Doyen, Loic" <[EMAIL PROTECTED]>
To: Post all your questions about iText here 
<itext-questions@lists.sourceforge.net>
Sent: Monday, August 18, 2008 10:12:14 AM
Subject: [iText-questions] Alignement in a Chunk or Phrase for RTF document



Hi, 

I have to put words in an RTF document, but without the line breaker at the end 
of a Paragraph, so I use Chunk and Phrase to do it but I cannot find any method 
to define the alignment of these objects (like the one in the Paragraph class).

Best regards, 

Loïc LE DOYEN 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to