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

justifyVertically not working on last page #3631

Open
riscodes opened this issue Mar 21, 2024 · 2 comments
Open

justifyVertically not working on last page #3631

riscodes opened this issue Mar 21, 2024 · 2 comments

Comments

@riscodes
Copy link

It seems justifyVertically option is not working for last page when using the Javascript library since justifyIncludeLast option was removed in version 2.2.0 (here).

To reproduce the issue, use the full example code from the manual (here) and add justifyVertically: true and breaks: 'line' to the options (also can change pageHeight and pageWidth to a fixed size of 2700 and 2100 and zoom to 30 for easier viewing).

First page rendering works as expected with the correct vertical justification, but when rendering the second page the vertical justification does not work.

page1 page2

Thanks!

@craigsapp
Copy link
Contributor

This could potentially be related to the option:

 --justification-max-vertical <f>	Maximum ratio of justifiable height to page height that can be used for the vertical justification (default: 0.30; min: 0.00; max: 1.00)

Although the last page seems to be about 0.50 full which is more than the default value of 0.30. Or maybe 0.30 means that the score has to be at least 0.70 of the page height.

@riscodes
Copy link
Author

Thank you for responding so quickly. Yes, I thought the same, but after trying many different values and combinations for all the justification options (justificationStaff, justificationSystem, justificationMaxVertical, etc) I can never get last page vertically justified. I've also tried with other scores but I get the same result.

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

No branches or pull requests

2 participants