> Do I need to mention the style in the html source to display the entire content?
Try the style as an experiment.
Also try to define java.awt.Insets(0,0,0,0) to see if it impacts the resulting page margins.

From our side it is difficult to guess where l:142.0, t:142.0, r:142.0, b:142.0 margins may come from.