Changing the margins instantly is very easy. Instead of delaying the change
until the newPage change the margins immediately in PdfDocument. Be warned
that the implementation is half broken but it may work for you. See the
mailing list archive around 2002-07-12 for the discussion about the margins.

Best Regards,
Paulo Soares

----- Original Message -----
From: "Jaladurgam, Ramana" <[EMAIL PROTECTED]>
To: "'Paulo Soares'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, August 21, 2003 16:54
Subject: RE: Margins not getting affected immediately


> Dear Paulo,
>   I have learnt from the iText release history that iText 0.93 has
> changed
> this immediate page margin change effect. Let me experiment with iText
> 0.92.
>   If I want to incorporate this immediate margin change effect, is it
> going
> to be an uphill task?
>
>
> Regards
> Ramana.JV.
>
> -----Original Message-----
> From: Paulo Soares [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 21, 2003 6:31 AM
> To: Jaladurgam, Ramana; [EMAIL PROTECTED]
> Subject: Re: Margins not getting affected immediately
>
>
> There's no workaround. If you need sophisticated layouts you should
> consider
> ColumnText and PdfPTable.
>
> Best Regards,
> Paulo Soares
>
> ----- Original Message -----
> From: "Jaladurgam, Ramana" <[EMAIL PROTECTED]>
> To: "'Paulo Soares'" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Wednesday, August 20, 2003 22:44
> Subject: RE: Margins not getting affected immediately
>
>
> > Hey Paulo,
> >   That's a kind of dissappointement for me.
> >   Is there any way to workaround this problem?
> >   My requirement needs to set the margins in the middle of a page.
> >   Please help.
> >
> > Regards
> > Ramana.JV.
> >
> > -----Original Message-----
> > From: Paulo Soares [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 20, 2003 4:32 PM
> > To: Jaladurgam, Ramana; [EMAIL PROTECTED]
> > Subject: Re: Margins not getting affected immediately
> >
> >
> > Margin only take effect in the next page like the page size. The
> > tutorial was right for a previous version but as it didn't work as
> > intended the behavior was changed to be consistent with the page
> > setting.
> >
> > Best Regards,
> > Paulo Soares
> >
> > ----- Original Message -----
> > From: "Jaladurgam, Ramana" <[EMAIL PROTECTED]>
> > To: "'Paulo Soares'" <[EMAIL PROTECTED]>;
> > <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 20, 2003 22:22
> > Subject: Margins not getting affected immediately
> >
> >
> > > Hello group,
> > >   We have created the document with (144, 144, 144, 144) margin,
> > > added
> >
> > > some text and then set again the margin to (72, 72, 72, 72). The
> > > document has only one page. But the margin appearing on the page is
> > > the 144 margin and not the second one.
> > >   From the iText tutorial Margins sections we found that changing of
> > > margins
> > > has an immediate effect, where is not true in the testing perfomed
> at
> > > here.
> > > The changed margins are getting affected from the next page onwards.
> > >   Is there something more to do?
> > >   What are we required to do for margins to take immediate effect?
> > >
> > >
> > > Regards
> > > Ramana.JV.
> > >
> > >
> > > ********************************************************************
> > > **
> > > **
> > > ****
> > > This email may contain confidential material.
> > > If you were not an intended recipient,
> > > Please notify the sender and delete all copies.
> > > We may monitor email to and from our network.
> > >
> > **********************************************************************
> > **
> > > ****
> > >
> >
> > **********************************************************************
> > **
> > ****
> > This email may contain confidential material.
> > If you were not an intended recipient,
> > Please notify the sender and delete all copies.
> > We may monitor email to and from our network.
> >
> ************************************************************************
> > ****
> >
>
> ************************************************************************
> ****
> This email may contain confidential material.
> If you were not an intended recipient,
> Please notify the sender and delete all copies.
> We may monitor email to and from our network.
> ************************************************************************
> ****
>



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to