Package de.stiebernet.tools.jpg2pdf

Examples of de.stiebernet.tools.jpg2pdf.ImagePrinter


  }

  protected void start() {
    try {
      getOutput().setText("");
      ImagePrinter ip = new ImagePrinter(
          getFileName().getText(),
          getPageNumbers().isSelected(),
          false,
          ((Integer) getColumns().getSelectedItem()).intValue(),
          (getMatchingRows().isSelected() ? 0 : ((Integer) getRows().getSelectedItem()).intValue()),
          getTextPosition()
          );
      File cdir = new File(".");
      String[] files = cdir.list();
      for(String f : files) {
        if(f.toLowerCase().endsWith(".jpg")) {
          getOutput().setText(getOutput().getText() + f + System.getProperty("line.separator"));
          ip.addImage(f);
        }
      }
      ip.close();
      JOptionPane.showMessageDialog(this, "Fertig!", ":-)", JOptionPane.INFORMATION_MESSAGE);
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of de.stiebernet.tools.jpg2pdf.ImagePrinter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.