Patent ID: 8869026

Claim:
A method for managing electronic documents (EDs), comprising: obtaining an ED defining an overflowed textbox with a vertical justification, a paragraph for the overflowed textbox, and a horizontal justification of the paragraph, wherein the paragraph comprises a plurality of characters; generating, based on the ED and for input to a layout engine, an intermediate document (ID) defining an enlarged textbox encapsulating the paragraph with the horizontal justification; calculating, using the layout engine and based on the ID, a plurality of positions of the plurality of characters within the enlarged textbox by generating an intermediate page comprising the enlarged textbox; calculating, based on the vertical justification of the overflowed textbox, a transformation between a point of interest (POI) associated with the enlarged textbox on the intermediate page and a reference point associated with the overflowed textbox; and generating a rendered page comprising the overflowed textbox of the ED by applying the transformation to the plurality of positions of the plurality of characters, wherein the overflowed textbox on the rendered page comprises a perimeter, and wherein at least one of the plurality of characters on the rendered page is located outside the perimeter of the overflowed textbox.