returns the size image needed to render the document without anything going off the side . could be different than the dimensions passed into layout because of text that could n't break or a table that 's set to be too big . concode_field_sep Dimension dim concode_elem_sep XHTMLPanel panel concode_field_sep void layout concode_elem_sep BufferedImage renderToImageAutoSize concode_elem_sep BufferedImage renderToImageAutoSize concode_elem_sep void setDocument concode_elem_sep void setDocument concode_elem_sep void setSharedContext concode_elem_sep XHTMLPanel getPanel concode_elem_sep SharedContext getSharedContext concode_elem_sep void render concode_elem_sep BufferedImage renderToImage concode_elem_sep BufferedImage renderToImage