...
Codeblock |
---|
loader.addLoadListener(new LoadListener() { public void loadStateChanged(LoadEvent e) { if (e.getType() == LoadEvent.LOAD_ERROR && e.getThrowable() instanceof JadiceException) { if (((JadiceException)e.getThrowable()).getId().equals( "DOCP.FORMAT.PDF-ENCRYPTED_DOCUMENTS_NOT_SUPPORTED")) { System.err.println("Process encrypted documents here..."); } } } }); loader.loadDocument(seekInputStream, 0); |
...