I was trying to implement printing cards and it works fine until too many cards are loaded into one course. Is there a way to add pages rather than compressing the images into one page?
Maybe use a tabbed pane, or another way to build each page that should be printed into its own component? Then you may be able to print each of those components to its own page.
This website may help:
https://coderanch.com/t/709329/java/JavaFX-approach-dividing-text-blob
I used it a lot when figuring out the printing process.
we used multiple vboxes for that