I've added them, no problem On 01/12/11 23:37, Jason Berk wrote: > I opened the ticket, but it only let me attach one of the files (the > .java file). Can you add the files I sent in with the original email? > Otherwise, how can I edit the bug ticket? > > > > Table Width Incorrect – ID: 3447497 > > > > *From:*Balder VC [mailto:li...@redlab.be] > *Sent:* Thursday, December 01, 2011 4:59 PM > *To:* itext-questions@lists.sourceforge.net > *Subject:* Re: [iText-questions] XML Worker > > > > It seems that some margin or padding is applied twice on a table. You > could try putting a negative margin or padding in css. I don't know what > effect that would have though :D > Have you tried setting a width in pt instead of % ? > > Any way it looks like a bug in the calculation. If you could be so kind, > you may report it at > http://sourceforge.net/tracker/?group_id=541147&atid=2197194 > <http://sourceforge.net/tracker/?group_id=541147&atid=2197194> > > The difference between the one inside an outside the body is that after > the body end some internal memory to keep track of margins is reset. > Hence I suspect somewhere a margin is applied where it should not when > inside a body. > > > Regards > Balder > On 1/12/2011 15:38, Jason Berk wrote: > > I didn't hear back > > I don't have the mailing list with me all the time, too much traffic for > mobile ;) and no code with me there too :) > > on this and just wanted to know if I should be > > filling out a bug report someplace or following some other protocol. > > > > Jason > > > > -----Original Message----- > > From: Jason Berk [mailto:jb...@purduefed.com] > > Sent: Wednesday, November 30, 2011 9:43 AM > > To: Post all your questions about iText here > > Subject: Re: [iText-questions] XML Worker > > > > So attached you'll find my XmlWorkerTest.java. I used that code and the > > two .html files to create the two PDFS. > > > > Notice in test1.html, the closing body tag is at the bottom of the file, > > as I would expect. Problem is that the table seems to respect a double > > margin width. > > > > Test2.html is the same as test1.html, except the closing body tag is > > _before_ the table. Now the table stretches beyond the margins of the > > page, yet the paragraph tags in the table still obey the styles...even > > though the entire table is "outside" the body. > > > > In neither case does the width of the table match the width of the > > document's usable horizontal space (doc.right() - doc.left()) > > > > Jason > > > > -----Original Message----- > > From: Balder VC [mailto:li...@redlab.be] > > Sent: Wednesday, November 30, 2011 5:28 AM > > To: itext-questions@lists.sourceforge.net > <mailto:itext-questions@lists.sourceforge.net> > > Subject: Re: [iText-questions] XML Worker > > > > Tables are tricky > > > > If I recall correctly, XMLWorker will try to fit your table in the page > > taking into account your page margins. > > If you have defined a table in html which is wider then the page it > > cannot fit it. The width settings will only be used if total width of > > the table is smaller then the area that can be used. (both CSS width > > property or <table width=""> should work). 100% should take whole > > available width but if your cells also define width, it's influenced by > > that too. > > > > Regards > > Balder > > > > On 29/11/11 20:52, Jason Berk wrote: > > With XML Worker how do I make my <table> have a width of 100% of the > > page? > > > > Jason Berk > > jb...@purduefed.com <mailto:jb...@purduefed.com> > > www.purduefed.com <http://www.purduefed.com> > > 800.627.3328 x8902 > > > > > > > > > > -- > twitter <http://twitter.com/redlabbe> > redlab-log <http://www.redlab.be/blog/> > > 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. > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > > > > _______________________________________________ > 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
-- Balder VC http://www.redlab.be/blog/ http://twitter.com/redlabbe ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ 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