"It's an odd construction. Not very elegant to say the least,"

 

Is there a better way?  That statement makes me feel like I'm "missing"
something.  Is there some other way to get a handle to the PdfDocument?

 

As much as modifying the code would be nice, I think what's more
important is that I understand the issue, and have a work around in
place.

 

Thanks again,

 

Jason

 

From: 1T3XT BVBA [mailto:i...@1t3xt.info] 
Sent: Friday, July 29, 2011 12:26 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Fwd: Document getBottomMargin() bug

 

On 29/07/2011 18:15, Jason Berk wrote: 

BINGO:

writer.getDirectContent().getPdfDocument() returns the margins that are
respected by the table, instead of what they were set to for the next
page.

 I never realized those two "documents" were actually different....I
learned a lot....thanks

I knew both were different, but I didn't remember the implications for
the margins.
The solution isn't elegant, but I'm happy to hear that it works.
I would like to improve the code (to avoid that other people have the
same problem), but it's not going to be easy.
I'd have to rewrite all the methods that depend on the current (not so
ideal) way we deal with margins.


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

Reply via email to