some html/format tidying.
removed unused parameters (x,y,h,w) of pdf area size so it defaults to
0,0,500,800 automatically. Users don't need this normally.