Search in sources :

Example 1 with PDFImageBasePane

use of com.kyj.fx.voeditor.visual.component.PDFImageBasePane in project Gargoyle by callakrsos.

the class SystemLayoutViewController method openPdf.

/**
	 * PDF파일을 연다.
	 *
	 * @작성자 : KYJ
	 * @작성일 : 2016. 2. 22.
	 * @param file
	 * @throws Exception
	 */
private void openPdf(File file) throws Exception {
    try {
        CloseableParent<PDFImageBasePane> pdfPane = new CloseableParent<PDFImageBasePane>(new PDFImageBasePane(file)) {

            @Override
            public void close() throws IOException {
                LOGGER.debug("Close doc . reuqest ");
                getParent().close();
            }
        };
        loadNewSystemTab(file.getName(), pdfPane);
    } catch (Exception e) {
        LOGGER.debug(ValueUtil.toString(e));
        throw e;
    }
}
Also used : PDFImageBasePane(com.kyj.fx.voeditor.visual.component.PDFImageBasePane) IOException(java.io.IOException) GargoyleException(com.kyj.fx.voeditor.visual.exceptions.GargoyleException)

Aggregations

PDFImageBasePane (com.kyj.fx.voeditor.visual.component.PDFImageBasePane)1 GargoyleException (com.kyj.fx.voeditor.visual.exceptions.GargoyleException)1 IOException (java.io.IOException)1