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