@Override @SuppressWarnings("UnusedReturnValue") public Object executeCommand(final int commandID,final Object[] args){
  if (!isSetup) {
    throw new RuntimeException("You must call viewer.setupViewer(); before you call any commands");
  }
  return currentCommands.executeCommand(commandID,args);
}

@ Override @ SuppressWarnings ( "UnusedReturnValue" ) public Object executeCommand ( final int commandID , final Object [ ] args ) { if ( ! isSetup ) { throw new RuntimeException ( "You must call viewer.setupViewer(); before you call any commands" ) ; } return currentCommands . executeCommand ( commandID , args ) ; }
execute jpedal functionality from outside of the library using this method . examples commandid = commands . openfile , args = { " / pdfdata / hand_test / crbtrader . pdf } " commandid = commands . openfile , args = { byte [ ] = { 0 , 1 , 1 , 0 , 1 , 1 , 1 , 0 , 0 , 1 } , " / pdfdata / hand_test / crbtrader . pdf } " commandid = commands . rotation , args = { " 90 " } commandid = commands . openurl , args = { " http : / / www . cs . bham . ac . uk / ~ axj / pub / papers / handy1 . pdf " } for full details see http : / / www . idrsolutions . com / access - pdf - viewer - features - from - your - code /
