I am using the following HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";><html>            
<head>                </head>              <body style="margin-top: 0px; 
margin-bottom: 0px;">                                                <p 
style="margin-top: 0px; margin-bottom: 0px; line-height: 0.8em;"><span 
style="font-family: Georgia; letter-spacing: 0px; text-align: justify; 
text-indent: 0px; margin-top: 0px; margin-bottom: 0px; line-height: 
0.8em;">This is a test<br />This is a test<br />This is a test<br />This is a 
test</span></p>     </body></html>

When I use iText to generate the PDF, the bottom line is getting cut off if I 
don't add an extra 11 points to the bottom when I create the Document object.  
I am not using a bottom margin.  Is iText adding another bottom margin to each 
page?

Thanks,,
Chad


From: iText Info [mailto:[email protected]]
Sent: Wednesday, March 07, 2012 1:32 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Extra Whitespace at bottom of PDFs

Op 6/03/2012 22:45, Chad Snelson schreef:
I am generating PDFs from TinyMCE HTML using iText.  I am seeing extra 
whitespace at the bottom of the generated PDF pages, but if I reduce the page 
depth, the bottom line of text gets cut off.  I am not using a bottom margin.  
Is there any way around this issue?

I'm not sure what you mean, but I'm experiencing a similar (annoying) 
phenomenon.
If I use the default CSS, the margin for the <p> tag is defined as "margin: 1em 
0".
The 1em causes paragraphs to have a bottom margin as big as the font size.
I avoid this by using my own CSS (or by telling iText not to use the default 
CSS).

I'm not sure if that answers your question (I must admit that I don't 
understand your question).
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
iText-questions mailing list
[email protected]
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