System.out.println("Cannot open");
System.out.println("Cannot open 1 " + _ex.getMessage());
   public void openOutputFile() {      try {         updateStatus("Opening File");         String suffix = ".txt";         if (cvtType.getSelectedIndex() == 0)            suffix = ".pdf";         String fileName = pcPathInfo.getText().trim();         if (email.isSelected()) {            File dir = new File(System.getProperty("user.dir"));            File f = File.createTempFile(number.getText().trim(),suffix,dir);            System.out.println(f.getName());            System.out.println(f.getCanonicalPath());            conicalPath = f.getCanonicalPath();            f.deleteOnExit();            fw = new FileOutputStream(f);         }         else            fw = new FileOutputStream(fileName);         if (cvtType.getSelectedIndex() > 0)            return;         if (document == null) {            document = new Document();            bos = PdfWriter.getInstance(document,fw);            BaseFont bf = BaseFont.createFont("Courier", "Cp1252", false);            float fontsize = 9.0f;            if (fontSize.getText().length() > 0)               fontsize = Float.parseFloat(fontSize.getText().trim());            font = new com.lowagie.text.Font(bf, fontsize,                                             com.lowagie.text.Font.NORMAL);            if (author.getText().length() > 0)               document.addAuthor(author.getText());            if (title.getText().length() > 0)               document.addTitle(title.getText());            if (subject.getText().length() > 0)               document.addSubject(subject.getText());            // set the page sizes and the page orientation            String ps = (String)pageSize.getSelectedItem();            if (ps.equals("A3")) {               if (portrait.isSelected())                  document.setPageSize(PageSize.A3);               else                  document.setPageSize(PageSize.A3.rotate());            }            if (ps.equals("A4")) {               if (portrait.isSelected())                  document.setPageSize(PageSize.A4);               else                  document.setPageSize(PageSize.A4.rotate());            }            if (ps.equals("A5")) {               if (portrait.isSelected())                  document.setPageSize(PageSize.A5);               else                  document.setPageSize(PageSize.A5.rotate());            }            if (ps.equals("LETTER")) {               if (portrait.isSelected())                  document.setPageSize(PageSize.LETTER);               else                  document.setPageSize(PageSize.LETTER.rotate());            }            if (ps.equals("LEGAL")) {               if (portrait.isSelected())                  document.setPageSize(PageSize.LEGAL);               else                  document.setPageSize(PageSize.LEGAL.rotate());            }            if (ps.equals("LEDGER")) {               if (portrait.isSelected())                  document.setPageSize(PageSize.LEDGER);               else                  document.setPageSize(PageSize.LEDGER.rotate());            }         }      }      catch(IOException _ex) {         System.out.println("Cannot open");      }      catch(Exception _ex) {         System.out.println("Cannot open");      }   }