Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Pagination / Page Breaks #3737

Open
Gazook89 opened this issue Sep 22, 2024 · 1 comment
Open

Auto Pagination / Page Breaks #3737

Gazook89 opened this issue Sep 22, 2024 · 1 comment
Labels

Comments

@Gazook89
Copy link
Collaborator

Your idea:

It would be nice to not need manual page breaks-- the document should automatically determine where page breaks are needed and create a new page. Manual page breaks would still be allowed.

An example of a web document editor that manages to do this is Google Docs.

Likely, some method of calculating the height of elements and determining when that total height is greater than the page/container height, and then splitting the last element that overflows into a new page/container. Calculating heights of whole elements is likely "easy", but a library would likely be needed for calculating exactly where to split the text node of the last element.

Or, a library to handle it all (paged.js).

There are likely a million edge cases where this will have poor results. But I think it's worth a try at some point, if for no other reason than to have a good answer when someone else asks for it.

@Gazook89 Gazook89 added feature 🚀 V4 Wait for V4 labels Sep 22, 2024
@5e-Cleric
Copy link
Member

issue #66 was the original tracker, but it is abandoned and contains no additional information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants