Thanks for the pointer, it is kind of working with shape element but problem
is I want it to display on all pages but it comes only on first page doesn't
matter what height is set. Is there some flag which I have to set to display
it on all pages ? 

This is code I am using to get border on left hand sideof page:

RtfShapePosition position = new
RtfShapePosition(0,(int)((document.leftMargin()-borderSize)*
RtfBasicElement.TWIPS_FACTOR), (int)(document.leftMargin()*
RtfBasicElement.TWIPS_FACTOR),(int)(document.getPageSize().height() *
RtfBasicElement.TWIPS_FACTOR));
 
position.setYRelativePos(RtfShapePosition.POSITION_Y_RELATIVE_MARGIN);
RtfShape shape = new RtfShape(RtfShape.SHAPE_RECTANGLE,position);
shape.setProperty(new
RtfShapeProperty(RtfShapeProperty.PROPERTY_LINE_COLOR,color));
shape.setProperty(new
RtfShapeProperty(RtfShapeProperty.PROPERTY_FILL_COLOR,color));
            document.add(shape);
      

Regards
Anil

-----Original Message-----
From: Mark Hall [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 27 February 2008 10:43 AM
To: [email protected]
Cc: Anil Kumar
Subject: Re: [iText-questions] RTF: Page Border

Hi,

no that is not supported. You might try faking it using the drawing objects.
I 
can't guarantee that it can work though. Have a look at the tutorial 
http://itextdocs.lowagie.com/tutorial/rtf/index.php for how to use these.

Mark

On Tuesday 26 February 2008, Anil Kumar wrote:
> Hello,
>
>
>
> I am trying to get a Top-Left border on a page, is there a way to get
> border like attached file?
>
>
>
> Regards
>
> Anil



-- 
Tomorrow, you can be anywhere.

My GPG public key is available at:
http://www.room3b.eu/data_box/download?path=%2Fsecurity%2FMarkHall.asc



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to