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

Reply via email to