Skip to main content

PDFRenderer: Maximizing the size of the pdfViewerPanel within the display panel

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
victorkluck
Offline
Joined: 2014-02-17

Is there a way to maximize (or zoom) a rendered image within the size of a JPanel? No matter what I do to set the preferred size of the pdfViewerPanel (to match the dimensions of the destination JPanel), there is still about 150 pixels of gray space or margin on either side of the pdfViewerPanel.

Thanks in advance for any help you can provide me!