argins so
they are active on page 5+?
Hh
Original Message-
From: 1T3XT BVBA [mailto:i...@1t3xt.info]
Sent: Thursday, July 28, 2011 9:58 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Document getBottomMargin() bug
On 28/07/2011 15:42, Jason Berk wr
iText here
Subject: Re: [iText-questions] Document getBottomMargin() bug
On 28/07/2011 15:42, Jason Berk wrote:
> Is the rule "once you change margins, top/bottom/left/right may not
> return what you expect"?
The rule is:
- don't change margins in PdfDocument (in a page event),
On 28/07/2011 15:42, Jason Berk wrote:
> Is the rule "once you change margins, top/bottom/left/right may not
> return what you expect"?
The rule is:
- don't change margins in PdfDocument (in a page event), change them in
Document (not in a page event).
- if you change them in Document, do so befor
ght(), doc.bottom());
canvas.lineTo(doc.left(), doc.bottom());
canvas.stroke();
}
}
-Original Message-
From: 1T3XT BVBA [mailto:i...@1t3xt.info]
Sent: Thursday, July 28, 2011 4:24 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Doc
On 27/07/2011 18:04, Jason Berk wrote:
> I change page margins in the onEndPage event, so the changes will affect
> the next page.
>
> When I add my table to the document via doc.add(myTable), the new
> margins are respected and my PDF looks great. What's funny is that if
> use doc.bottomMargin(),
efed.com]
Sent: Wednesday, July 27, 2011 12:04 PM
To: Post all your questions about iText here
Subject: [iText-questions] Document getBottomMargin() bug
I will send up a sample to illustrate, but here's the just of it.
I change page margins in the onEndPage event, so the changes will affec
I will send up a sample to illustrate, but here's the just of it.
I change page margins in the onEndPage event, so the changes will affect
the next page.
When I add my table to the document via doc.add(myTable), the new
margins are respected and my PDF looks great. What's funny is that if
use do