The org.alivepdf.viewing package classes lets you control the way the document is to be presented on the screen or in print.