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

Automatic Page Breaks #19

Open
calnexus opened this issue Aug 23, 2023 · 2 comments
Open

Automatic Page Breaks #19

calnexus opened this issue Aug 23, 2023 · 2 comments
Labels

Comments

@calnexus
Copy link

Is there a way to add automated page breaks like in MS word without relying on the manual .page CSS rule when the page height is exceeded?

@ocram ocram added the question label Aug 26, 2023
@ocram
Copy link
Contributor

ocram commented Aug 26, 2023

Thanks!

The live demo, which loads /index.html, has some JavaScript added that aims to take care of this. Have you tried it or seen it?

@calnexus
Copy link
Author

calnexus commented Aug 30, 2023

Yes I have ,it doesn't work. Maybe i have some other library blocking the code.I managed to fix it by using javascript timers
// window.addEventListener("DOMContentLoaded", function() {
// applyPageBreaks();
// });

setTimeout(() => {
applyPageBreaks();
}, 1000);

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