Patent ID: 8954842
Filing Date: 2015-02-10
Classification: G06F

Abstract:
1. A method for managing a plurality of columns including an initial column and a final column in an electronic document (ED) described in a markup language, comprising: obtaining a text stream from the ED; identifying, based on a plurality of attributes in the markup language, a plurality of widths of the plurality of columns, a height of the plurality of columns, and the number of columns in the plurality of columns, wherein each of the plurality of columns has the height and one of the plurality of widths; identifying a total area of the plurality of columns based on the plurality of widths and the height; calculating an area covered by the text stream by placing, using a layout engine, the text stream within the plurality of columns; calculating a ratio by dividing the area covered with the total area; calculating a line limit based on a product of the ratio and a number of lines per column; and replacing, using the layout engine, a first portion of the text stream in the initial column until the line limit is reached and a second portion of the text stream in the final column.