org.pdfbox.pdfviewer

Class PDFPagePanel


public class PDFPagePanel
extends JPanel

This is a simple JPanel that can be used to display a PDF page.
Version:
$Revision: 1.4 $
Author:
Ben Litchfield

Constructor Summary

PDFPagePanel()
Constructor.

Method Summary

void
paint(Graphics g)
void
setPage(PDPage pdfPage)
This will set the page that should be displayed in this panel.

Constructor Details

PDFPagePanel

public PDFPagePanel()
            throws IOException
Constructor.

Method Details

paint

public void paint(Graphics g)

setPage

public void setPage(PDPage pdfPage)
This will set the page that should be displayed in this panel.
Parameters:
pdfPage - The page to draw.