Skip to content

Google docs - like pagination #4380

Answered by zbeyens
scape76 asked this question in Q&A
Discussion options

You must be logged in to vote

I did a paging plugin in the past, unfortunately I won't have free time to open-source it. Here is a quick analysis from AI.


Core Architecture

The plugin wraps all content inside page nodes, using normalization to ensure
proper page structure. Each page acts as a container with calculated dimensions
based on A4 paper size (8.5" × 11" with 1" margins).

Normalization Strategy

The normalization system enforces several rules:

  1. Wrap blocks not in pages - All top-level content must be inside page nodes
  2. Prevent nested pages - Pages cannot contain other pages
  3. Handle empty pages - Remove pages with no content
  4. Page overflow - Move overflowing content to the next page
  5. Soft split/merge - Handle elem…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zbeyens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants