We are using an application which automatically creates the html, based on the inputs we provide(same as the message body(text area) where we post a reply/query to any forum. for example the same pd4ml support forum page).Which is a standard functionality of that particular application.

we are converting this auto generated html to pdf. So we can only work with the java code for this auto adjustment of the content of pdf document to fit to html width.
we are facing this right margin and some content from right margin missing issue,specifically when the content of the html includes tables and multi level bulleted list.

Can i auto adjust the table width to automatically adjust according to the html width?
is there any java code phrase available for,auto page break option, when the text exceeds the html width limit?