摘要 |
A method for managing electronic documents (EDs), including obtaining an ED defining an overflowed textbox with a vertical justification, a paragraph for the overflowed textbox, and a horizontal justification of the paragraph, where the paragraph comprises a plurality of characters, generating, based on the ED, 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 including the enlarged textbox, calculating, based on a 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 of the ED by applying the transformation to the plurality of positions of the plurality of characters. |