index 0 page left margin in centimeter index 1 page right
margin in centimeter index 2 page bottom margin in
centimeter index 3 page top margin in centimeter
return 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 couldn't
break or a table that's set to be too big