hechina srinivas wrote:

Hi Bruno,
I was trying to convert a html to pdf file using the SAXmyHtmlHandler class. as mentioned in the iText example. But the final pdf always have the margins 36,36,36,36 irrespective of what I give in the Document constructor as below: I am not sure if thats a bug, or if I have to modify anything in my code. Can you please help me in this ? I tried to post in gmane.com <http://gmane.com> but i didnt get any response yet.

- I have been out since wednesday (I was only a few minutes online a day)
- I know it's possible to post something to GMANE, but in that case the
mail only shows on GMANE and it isn't forwarded to the actual mailing-list
and to the other mailing-list archives.

As for your question: you need to specify the margins in the BODY tag:
<body topmargin="40" bottommargin="50" leftmargin="80" rightmargin="20">
br,
Bruno


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to