Patent ID: 8578268

Claim:
A method for rendering an electronic document (ED), comprising: obtaining, for input to a layout engine, an intermediate format of the ED comprising a first plurality of containers corresponding to a first plurality of linked textboxes in the ED; obtaining a data structure comprising a first root node associated with a first string for distribution across the first plurality of linked textboxes and a first plurality of segment nodes comprising a first plurality of pointers to the first plurality of containers; identifying, after obtaining the data structure, a first container of the first plurality of containers within the intermediate format; locating, in response to identifying the first container and within the data structure, the first root node having the string; executing, in response to locating the first root, a traversal of the first plurality of segment nodes linked to the first root node; generating, during the traversal of the first plurality of segment nodes, a first plurality of intermediate pages by applying the layout engine to the first plurality of containers referenced by the first plurality of pointers, wherein the first string is distributed across the first plurality of intermediate pages; and generating, after executing the traversal of the first plurality of segment nodes, a rendered page of the ED, wherein generating the rendered page comprises substituting the first container of the first plurality of containers with an intermediate page of the first plurality of intermediate pages corresponding to the first container.