I want to change the margins of a page in the middle of my PDF. Pages
before and after that page should use the same margins. Only that
page's margins should be different.
The content added to that special page will be a table with a variable
number of rows, which could span multiple pages. I always do a page
break before that special page. How/where do I reset the margins for
pages after that special page.
1) I'm adding the table with doc.add(myTable)
2) I would like doc.top/bottom/etc to return the same dimensions
that the table will consume
so something like this:
1) Create a document with default (36 point) margins
2) Add 3 pages of content
3) Change the margins to 36,36,36,250 (the bottom of page 4 has a
payment coupon)
4) Page break
5) Add a table to page 4 with doc.add(...) which may span multiple
pages (but shouldn't print over the coupon)
a. Verify page 4 has a tall bottom margin
b. Page 5+ should revert back to margins 36,36,36,36
I'm working on a solution that uses absolute positioning, but would
still like to see how others would accomplish this task.
From: 1T3XT BVBA [mailto:i...@1t3xt.info]
Sent: Friday, July 29, 2011 2:44 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Fwd: Document getBottomMargin() bug
On 28/07/2011 23:29, Jason Berk wrote:
Do table events still fire if writing a table via
writeSelectedRows(....)?
Table events still work when you use writeSelectedRows (see p130 if you
want confirmation in the book).
As for your question about other possible workarounds: can you explain
in less than 5 lines of text what you need?
I know that you've sent a code sample, but I'd rather hear the
requirement in plain words.
(In other words: I have to admit that I don't understand what you want
to achieve.)
This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is
intended solely for its authorized recipient(s), and may contain information
that is confidential and or legally privileged. If you are not an addressee, or
the employee or agent responsible for delivering it to an addressee, you are
hereby notified that any use, dissemination, distribution, publication or
copying of the information contained in this email is strictly prohibited. If
you have received this transmission in error, please notify us by telephoning
(765)497-3328 or returning the email. You are then instructed to delete the
information from your computer. Thank you for your cooperation.
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php