private void parsePDF(String filename, String password) throws PDFAuthenticationFailureException {
   long startTime = System.currentTimeMillis();
   try {
     File f = new File(filename);
     long len = f.length();
     if (len == 0) {
       mGraphView.showText("file '" + filename + "' not found");
     } else {
       mGraphView.showText("file '" + filename + "' has " + len + " bytes");
       openFile(f, password);
     }
   } catch (PDFAuthenticationFailureException e) {
     throw e;
   } catch (Throwable e) {
     e.printStackTrace();
     mGraphView.showText("Exception: " + e.getMessage());
   }
   long stopTime = System.currentTimeMillis();
   mGraphView.fileMillis = stopTime - startTime;
 }