Package com.lowagie.tools.arguments

Examples of com.lowagie.tools.arguments.OptionArgument.addOption()


    arguments.add(new FileArgument(this, "destfile", "The file to which the encrypted PDF has to be written", true, new PdfFilter()));
    arguments.add(new StringArgument(this, "ownerpassword", "The ownerpassword you want to add to the PDF file", String.class.getName()));
    arguments.add(new StringArgument(this, "userpassword", "The userpassword you want to add to the PDF file", String.class.getName()));
    arguments.add(new BitsetArgument(this, "permissions", "Permissions on the file", PERMISSION_OPTIONS));
    OptionArgument oa = new OptionArgument(this, "strength", "Strength of the encryption");
    oa.addOption("40 bit encryption", "40");
    oa.addOption("128 bit encryption", "128");
    arguments.add(oa);
  }

  /**
 
View Full Code Here


    arguments.add(new StringArgument(this, "ownerpassword", "The ownerpassword you want to add to the PDF file", String.class.getName()));
    arguments.add(new StringArgument(this, "userpassword", "The userpassword you want to add to the PDF file", String.class.getName()));
    arguments.add(new BitsetArgument(this, "permissions", "Permissions on the file", PERMISSION_OPTIONS));
    OptionArgument oa = new OptionArgument(this, "strength", "Strength of the encryption");
    oa.addOption("40 bit encryption", "40");
    oa.addOption("128 bit encryption", "128");
    arguments.add(oa);
  }

  /**
   * @see com.lowagie.tools.AbstractTool#createFrame()
View Full Code Here

  public NUp() {
    menuoptions = MENU_EXECUTE | MENU_EXECUTE_SHOW;
    arguments.add(new FileArgument(this, "srcfile", "The file you want to N-up", false, new PdfFilter()));
    arguments.add(new FileArgument(this, "destfile", "The resulting PDF", true, new PdfFilter()));
    OptionArgument oa = new OptionArgument(this, "pow2", "The number of pages you want to copy to 1 page");
    oa.addOption("2", "1");
    oa.addOption("4", "2");
    oa.addOption("8", "3");
    oa.addOption("16", "4");
    oa.addOption("32", "5");
    oa.addOption("64", "6");
View Full Code Here

    menuoptions = MENU_EXECUTE | MENU_EXECUTE_SHOW;
    arguments.add(new FileArgument(this, "srcfile", "The file you want to N-up", false, new PdfFilter()));
    arguments.add(new FileArgument(this, "destfile", "The resulting PDF", true, new PdfFilter()));
    OptionArgument oa = new OptionArgument(this, "pow2", "The number of pages you want to copy to 1 page");
    oa.addOption("2", "1");
    oa.addOption("4", "2");
    oa.addOption("8", "3");
    oa.addOption("16", "4");
    oa.addOption("32", "5");
    oa.addOption("64", "6");
    arguments.add(oa);
View Full Code Here

    arguments.add(new FileArgument(this, "srcfile", "The file you want to N-up", false, new PdfFilter()));
    arguments.add(new FileArgument(this, "destfile", "The resulting PDF", true, new PdfFilter()));
    OptionArgument oa = new OptionArgument(this, "pow2", "The number of pages you want to copy to 1 page");
    oa.addOption("2", "1");
    oa.addOption("4", "2");
    oa.addOption("8", "3");
    oa.addOption("16", "4");
    oa.addOption("32", "5");
    oa.addOption("64", "6");
    arguments.add(oa);
  }
View Full Code Here

    arguments.add(new FileArgument(this, "destfile", "The resulting PDF", true, new PdfFilter()));
    OptionArgument oa = new OptionArgument(this, "pow2", "The number of pages you want to copy to 1 page");
    oa.addOption("2", "1");
    oa.addOption("4", "2");
    oa.addOption("8", "3");
    oa.addOption("16", "4");
    oa.addOption("32", "5");
    oa.addOption("64", "6");
    arguments.add(oa);
  }
View Full Code Here

    OptionArgument oa = new OptionArgument(this, "pow2", "The number of pages you want to copy to 1 page");
    oa.addOption("2", "1");
    oa.addOption("4", "2");
    oa.addOption("8", "3");
    oa.addOption("16", "4");
    oa.addOption("32", "5");
    oa.addOption("64", "6");
    arguments.add(oa);
  }

  /**
 
View Full Code Here

    oa.addOption("2", "1");
    oa.addOption("4", "2");
    oa.addOption("8", "3");
    oa.addOption("16", "4");
    oa.addOption("32", "5");
    oa.addOption("64", "6");
    arguments.add(oa);
  }

  /**
   * @see com.lowagie.tools.AbstractTool#createFrame()
View Full Code Here

  public Tiff2Pdf() {
    menuoptions = MENU_EXECUTE | MENU_EXECUTE_SHOW;
    arguments.add(new FileArgument(this, "srcfile", "The file you want to convert", false, new ImageFilter(false, false, false, false, false, true)));
    arguments.add(new FileArgument(this, "destfile", "The file to which the converted TIFF has to be written", true, new PdfFilter()));
    OptionArgument oa = new OptionArgument(this, "pagesize", "Pagesize");
    oa.addOption("A4", "A4");
    oa.addOption("Letter", "LETTER");
    oa.addOption("Original format", "ORIGINAL");
    arguments.add(oa);
  }
View Full Code Here

    menuoptions = MENU_EXECUTE | MENU_EXECUTE_SHOW;
    arguments.add(new FileArgument(this, "srcfile", "The file you want to convert", false, new ImageFilter(false, false, false, false, false, true)));
    arguments.add(new FileArgument(this, "destfile", "The file to which the converted TIFF has to be written", true, new PdfFilter()));
    OptionArgument oa = new OptionArgument(this, "pagesize", "Pagesize");
    oa.addOption("A4", "A4");
    oa.addOption("Letter", "LETTER");
    oa.addOption("Original format", "ORIGINAL");
    arguments.add(oa);
  }

  /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.