1. A method comprising: identifying, by a processor, spatial relationships between document objects of a document image; determining, by a processor, space separating pairs of neighboring document objects, wherein the space separating pairs of neighboring document objects is represented as weights in a weighted graph model; and determining, by a processor, a scaling factor based on the space separating the document objects in the document image and based on display device characteristics.