Patent ID: 8898561

Claim:
A computer-implemented method for determining a display mode of an electronic document on a screen of an equipment, the method comprising: obtaining a size of the screen and an original layout size of the electronic document; determining, from the obtained original layout size of the electronic document, a document layout length in a layout direction of the original layout of the electronic document; determining, from the obtained size of the screen, a screen reading length in a reading direction of the screen; comparing the document layout length with the screen reading length to determine whether a fixed-layout display mode or a flow display mode is to be selected to display the electronic document, wherein the comparing the document layout length with the screen reading length comprises: determining a scale factor for the original layout size of the electronic document; determining a scaled layout size by multiplying the document layout length by the scale factor; and determining whether the scaled layout size is smaller than the screen reading length, and if yes, selecting the fixed-layout display mode to display the electronic document with the scaled layout size; otherwise selecting the flow display mode to display the electronic document.