摘要 |
A method for rendering a page, including: obtaining an electronic document comprising a text stream and an anchor corresponding to a graphical object and specifying a first displacement of the graphical object relative to the anchor; placing the text stream within a region of the page; identifying a first location on the page corresponding to the anchor; calculating an area on the page for placing the graphical object; marking the graphical object as pinned; initiating a second layout of the page; placing the text stream on the page by wrapping a portion of the text stream around the area; identifying a second location on the page corresponding to the anchor, where the second position and the area are separated by a second displacement distinct from the first displacement; and outputting the page with at least the portion of the text stream and with the graphical object occupying the area.
|