javaswingicepdf

IcePDF viewer customization help


I am trying to integrate ICEpdf viewer into an existing Java Swing application. The requirements are that I want to eliminate the top and bottom tool bars and the scroll bar, which I have already done. The problem is that I also don't want it to have that gray area around the pdf document. I want it to show up purely as a white page on the application. Does anyone know how to achieve this?

Thanks in advance, Mike


Solution

  • Found the answer. In the SwingController class of ice pdf source, there is a function called setPageFitMode().