public class PDFDocumentController extends PageableDocumentController
| Constructor and Description |
|---|
PDFDocumentController(DocumentViewer documentViewer) |
| Modifier and Type | Method and Description |
|---|---|
void |
bufferPages(int currentPageNum) |
void |
closeDocument() |
void |
draw(int pageNum,
JavaAWTGraphicsSurface surface,
Point2D position,
double xZoom,
double yZoom,
double rotation,
double pointOfRotationAboutWidth,
double pointOfRotationAboutHeight) |
IDocument |
getActiveDocument() |
String |
getFileName() |
IPage |
getPage(int index) |
int |
getPageCount() |
List<IPage> |
getPages() |
boolean |
isDocumentLoaded() |
void |
loadDocument(InputStream inputStream,
String password,
List<DocumentListener> documentListeners) |
void |
loadDocument(String fileName,
String password,
List<DocumentListener> documentListeners) |
void |
onRenderError(Object sender,
Throwable throwable)
Occurs when a PDF document, viewer or printer component meets
an exception.
|
void |
renderingSettingsChanged(RenderingSettings renderingSettings) |
public PDFDocumentController(DocumentViewer documentViewer)
public void closeDocument()
throws IOException
closeDocument in class PageableDocumentControllerIOExceptionpublic IDocument getActiveDocument()
getActiveDocument in class PageableDocumentControllerpublic String getFileName()
getFileName in class PageableDocumentControllerpublic int getPageCount()
getPageCount in class PageableDocumentControllerpublic boolean isDocumentLoaded()
isDocumentLoaded in class PageableDocumentControllerpublic void bufferPages(int currentPageNum)
bufferPages in class PageableDocumentControllerpublic void loadDocument(String fileName, String password, List<DocumentListener> documentListeners) throws FormatNotSupportedException, IncorrectPasswordException, XDocException, IOException
loadDocument in class PageableDocumentControllerFormatNotSupportedExceptionIncorrectPasswordExceptionXDocExceptionIOExceptionpublic void loadDocument(InputStream inputStream, String password, List<DocumentListener> documentListeners) throws FormatNotSupportedException, IncorrectPasswordException, XDocException, IOException
loadDocument in class PageableDocumentControllerFormatNotSupportedExceptionIncorrectPasswordExceptionXDocExceptionIOExceptionpublic IPage getPage(int index) throws XDocException, IOException
getPage in class PageableDocumentControllerXDocExceptionIOExceptionpublic List<IPage> getPages() throws XDocException, IOException
getPages in class PageableDocumentControllerXDocExceptionIOExceptionpublic void renderingSettingsChanged(RenderingSettings renderingSettings)
renderingSettingsChanged in class PageableDocumentControllerpublic void draw(int pageNum,
JavaAWTGraphicsSurface surface,
Point2D position,
double xZoom,
double yZoom,
double rotation,
double pointOfRotationAboutWidth,
double pointOfRotationAboutHeight)
throws IOException,
XDocException
IOExceptionXDocException