摘要 |
A method for resolving references in electronic documents (EDs), including: obtaining an ED having a reference to an item; generating, based on the ED, an intermediate document (ID) for input to a layout engine; identifying an entry having an initial value for the reference; calculating, during a first rendering of the ED, a first page having the item based on the ID and the initial value substituted for the reference; populating the entry with a first page number corresponding to the first page; calculating, during a second rendering of the ED, a second page having the item based on the first page number substituted for the reference; populating the entry with a second page number corresponding to the second page; and generating, in response to the first page number equaling the second page number, a first rendered document based on the second page number substituted for the reference. |