-
Notifications
You must be signed in to change notification settings - Fork 327
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
Comments
issue #66 was the original tracker, but it is abandoned and contains no additional information. |
I want to look into this after the #3870 and the Master Pages PRs ( if included ) are merged. |
A set of supporting questions: Assuming we implement soft page breaks (breaks that are determined by code, not by user declaration)
|
1: yes, but i don't love a or b, not sure 2: i had not though of that but it is a good idea. |
|
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.
The text was updated successfully, but these errors were encountered: