Method and apparatus for paginating electronic documents
Abstract
A method and apparatus for paginating documents such as html documents is disclosed. A document viewing engine generates a preliminary layout for the, the preliminary layout having a layout width that is equivalent to a viewport width of a viewport on which the document will be displayed. The document viewing engine computes a final layout for the document based on determining a plurality of horizontal pixel lines where page breaks can be placed without cutting off any element in the document and assigns page breaks to one or more of the plurality of horizontal pixel lines based on a height of the viewport. The document viewing engine identifies, for a current page, one or more visual elements that will not be fully within the viewport if painted. The document viewing engine paints the current page without painting the identified one or more visual elements. After changing from the current page to a new page, the document viewing engine paints the contents of the new page without re-computing the final layout of the document.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 14.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of paginating an electronic document comprising: receiving, by a processor of a user electronic device comprising a viewport for viewing the electronic document, the electronic document in an unpaginated format; generating, by the processor, a preliminary layout for the electronic document in the unpaginated format, the preliminary layout having a layout width that is equivalent to a viewport width of the viewport of the user electronic device, the viewport configured to display the electronic document, wherein generating the preliminary layout comprises: generating a Document Object
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (14 of 14 total)
References Cited — Backward Prior Art (15)
Non-Patent Literature (4)
- "CSS Multi-Column Layout Module" W3C, Dec. 17, 2009, 21 pages.
- "Epubjs source code" epub-tools, Apr. 7, 2009, 6 pages.
- "XML Path Language (XPath) 2.0" W3C, Jan. 23, 2007, 116 pages.
- Daly, Liz, "Introducing epubjs" Threepress Consulting blog, Feb. 9, 2009, 5 pages.