Microsoft Corporation
Cross-browser techniques for efficient document pagination

Last updated:

Abstract:

Cross-browser techniques for efficient document pagination are provided. In one set of embodiments, a computer system can receive an indication of a starting point for a page in a content flow of a document and build a DOM tree of content elements in a portion of the content flow spanning from the starting point to an estimated ending point, the estimated ending point corresponding to an estimated ending boundary for the page. The computer system can further invoke an API that causes a layout engine of the web browser to create a layout of the page based on the DOM tree and determine, based on the layout and the content flow, one or more content elements in the content flow that fall beyond an actual ending boundary of the page. The computer system can then remove the one or more content elements from the DOM tree and add the DOM tree to a page set for the document.

Status:
Grant
Type:

Utility

Filling date:

30 May 2019

Issue date:

6 Jul 2021