I'll keep the Paragraph alignments out of ColumnText. I can add a setIndentationFollowing() and a setIndentationRight(). This covers all the cases.
Best Regards, Paulo Soares > -----Original Message----- > From: Thomas McKay [SMTP:[EMAIL PROTECTED]] > Sent: Friday, March 22, 2002 18:00 > To: Paulo Soares > Cc: iText > Subject: RE: [iText-questions] Re: indentation of columnText > > Correct. Perhaps there is another solution that would make more sense in > this case? > > Only Phrases and Chunks can be added to ColumnText via addText(). Perhaps > Paragraphs can be added also to ColumnText directly. Then a > setIndentation() and a setFollowingIndentation() could be added there. > These two methods in addition to the already present > Paragraph.setIndentationLeft() and Paragraph.setIndentationRight() would > allow a very flexible paragraph structure: > > setIndentation( 0 ); > setIndentationFollowing( 36 ); > setIndentationLeft( 36 ); > setIndentationRight( 36 ); > > would yield (four periods equals 36) > > ----- left edge right edge ----- > v v > ....The beginning of a paragraph indented .... > ........with a following indent. This .... > ........goes on and on and on. > > > Of course, this is much more complicated then the quick change to > ColumnText. > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Paulo > Soares > Sent: Friday, March 22, 2002 11:11 AM > To: 'Thomas McKay' > Cc: iText > Subject: RE: [iText-questions] Re: indentation of columnText > > > The idea is to define a single column, inject a paragraph with some indent > and then repeat with another paragraph with other indent? > > Best Regards, > Paulo Soares > > > -----Original Message----- > > From: Thomas McKay [SMTP:[EMAIL PROTECTED]] > > Sent: Friday, March 22, 2002 16:02 > > To: Paulo Soares > > Cc: iText > > Subject: RE: [iText-questions] Re: indentation of columnText > > > > Specifying a narrower column width would be very awkward. In my > specific > > case, I calculate the column edges based upon images to be displayed on > > the > > page. In addition, each paragraph of text can have a unique > indentation. > > This means that in order to calculate the narrower column width, the > > number > > of lines that a paragraph covered would have to be calculated first and > > then > > the column width narrowed only in that region. > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Paulo > > Soares > > Sent: Friday, March 22, 2002 10:12 AM > > To: 'Thomas McKay' > > Cc: iText > > Subject: RE: [iText-questions] Re: indentation of columnText > > > > > > What's the problem of specifying a narrower column width? > > > > Best Regards, > > Paulo Soares > > > > > -----Original Message----- > > > From: Thomas McKay [SMTP:[EMAIL PROTECTED]] > > > Sent: Friday, March 22, 2002 14:25 > > > To: Paulo Soares; [EMAIL PROTECTED] > > > Cc: iText > > > Subject: RE: [iText-questions] Re: indentation of columnText > > > > > > Sorry it took me so long to get back to you on this. The negative > first > > > line indent does indeed work except that it then violates the column's > > > left > > > edge. > > > > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Paulo > > > Soares > > > Sent: Tuesday, March 19, 2002 9:29 AM > > > To: 'Thomas McKay'; [EMAIL PROTECTED] > > > Cc: iText > > > Subject: RE: [iText-questions] Re: indentation of columnText > > > > > > > > > I can't see the reason for this. A negative first line indent will > > achieve > > > the same. > > > > > > Best Regards, > > > Paulo Soares > > > > > > > -----Original Message----- > > > > From: Thomas McKay [SMTP:[EMAIL PROTECTED]] > > > > Sent: Tuesday, March 19, 2002 14:23 > > > > To: [EMAIL PROTECTED] > > > > Cc: iText > > > > Subject: RE: [iText-questions] Re: indentation of columnText > > > > > > > > Here's the code I added to ColumnText.java to set a "following > > indent." > > > > > > > > > > > > CAFFEINE:...lowagie/text/pdf> cvs diff ColumnText.java > > > > Index: ColumnText.java > > > > =================================================================== > > > > RCS file: /cvsroot/itext/src/com/lowagie/text/pdf/ColumnText.java,v > > > > retrieving revision 1.17 > > > > diff -r1.17 ColumnText.java > > > > 134a135,137 > > > > > > > > > > /** The following paragraph lines indent. */ > > > > > protected float followingIndent = 0; > > > > 443a447,464 > > > > > * Sets the following paragraph lines indent. > > > > > * @param indent the indent > > > > > */ > > > > > public void setFollowingIndent(float indent) > > > > > { > > > > > this.followingIndent = indent; > > > > > } > > > > > > > > > > /** > > > > > * Gets the following paragraph lines indent. > > > > > * @return the indent > > > > > */ > > > > > public float getFollowingIndent() > > > > > { > > > > > return followingIndent; > > > > > } > > > > > > > > > > /** > > > > 558c579 > > > > < firstIndent = line.isNewlineSplit() ? indent : 0; > > > > --- > > > > > firstIndent = line.isNewlineSplit() ? indent : > > > > followingIndent > > > > ; > > > > 595c616 > > > > < firstIndent = line.isNewlineSplit() ? indent : 0; > > > > --- > > > > > firstIndent = line.isNewlineSplit() ? indent : > > > > followingIndent > > > > ; > > > > 631c652 > > > > < } > > > > \ No newline at end of file > > > > --- > > > > > } > > > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of > > > > [EMAIL PROTECTED] > > > > Sent: Tuesday, March 19, 2002 9:08 AM > > > > To: Thomas McKay > > > > Cc: iText > > > > Subject: [iText-questions] Re: indentation of columnText > > > > > > > > > > > > Thomas McKay writes: > > > > > > > > > Just wondering if there's a way to indent the lines following the > > > first > > > > line > > > > > of a paragraph. > > > > > > > > > > This is some text that wraps > > > > > at the edge and indents > > > > > six spaces on subsequent > > > > > lines. > > > > > > > > > > I put some code into ColumnText.java to allow this to happen but > > there > > > > might > > > > > be a mechanism for this already. > > > > > > > > No, there isn't. > > > > > > > > _______________________________________________ > > > > iText-questions mailing list > > > > [EMAIL PROTECTED] > > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > > > > > > > > _______________________________________________ > > > > iText-questions mailing list > > > > [EMAIL PROTECTED] > > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > > _______________________________________________ > > > iText-questions mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > > > > > _______________________________________________ > > > iText-questions mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > _______________________________________________ > > iText-questions mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions