You can buy this project and download/modify it how often you want.
javafx.scene Provides the public classes for the JavaFX Printing API.
Provides the public classes for the JavaFX Printing API.