Examples of StringArgument


Examples of com.lowagie.toolbox.arguments.StringArgument

  /**
   * Constructs an InpectPDF object.
   */
  public InspectPDF() {
    arguments.add(new FileArgument(this, "srcfile", "The file you want to inspect", false, new PdfFilter()));
    arguments.add(new StringArgument(this, "ownerpassword", "The owner password if the file is encrypt"));
  }
View Full Code Here

Examples of com.lowagie.toolbox.arguments.StringArgument

   * Constructs an Encrypt object.
   */
  public Encrypt() {
    arguments.add(new FileArgument(this, "srcfile", "The file you want to encrypt", false, new PdfFilter()));
    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"));
    arguments.add(new StringArgument(this, "userpassword", "The userpassword you want to add to the PDF file"));
    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

Examples of com.lowagie.toolbox.arguments.StringArgument

  /**
   * Constructs an HtmlBookmarks object.
   */
  public HtmlBookmarks() {
    arguments.add(new FileArgument(this, "srcfile", "The file you want to inspect", false, new PdfFilter()));
    arguments.add(new StringArgument(this, "ownerpassword", "The owner password if the file is encrypt"));
    arguments.add(new StringArgument(this, "css", "The path to a CSS file"));
  }
View Full Code Here

Examples of com.lowagie.toolbox.arguments.StringArgument

   */
  public SelectedPages() {
    menuoptions = MENU_EXECUTE | MENU_EXECUTE_SHOW;
    arguments.add(new FileArgument(this, "srcfile", "The file you want to split", false, new PdfFilter()));
    arguments.add(new FileArgument(this, "destfile", "The file to which the first part of the original PDF has to be written", true, new PdfFilter()));
    arguments.add(new StringArgument(this, "selection", "A selection of pages (see Help for more info)"));
  }
View Full Code Here

Examples of com.lowagie.tools.arguments.StringArgument

  /**
   * Constructs an HtmlBookmarks object.
   */
  public HtmlBookmarks() {
    arguments.add(new FileArgument(this, "srcfile", "The file you want to inspect", false, new PdfFilter()));
    arguments.add(new StringArgument(this, "ownerpassword", "The owner password if the file is encrypt", String.class.getName()));
    arguments.add(new StringArgument(this, "css", "The path to a CSS file", String.class.getName()));
  }
View Full Code Here

Examples of com.lowagie.tools.arguments.StringArgument

   * Constructs an Encrypt object.
   */
  public Encrypt() {
    arguments.add(new FileArgument(this, "srcfile", "The file you want to encrypt", false, new PdfFilter()));
    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

Examples of com.lowagie.tools.arguments.StringArgument

    FileArgument f = new FileArgument(this, "srcfile", "The file you want to split", false, new PdfFilter());
    f.setLabel(new PdfInformationPanel());
    arguments.add(f);
    arguments.add(new FileArgument(this, "destfile1", "The file to which the first part of the original PDF has to be written", true, new PdfFilter()));
    arguments.add(new FileArgument(this, "destfile2", "The file to which the second part of the original PDF has to be written", true, new PdfFilter()));
    arguments.add(new StringArgument(this, "pagenumber", "The pagenumber where you want to split", String.class.getName()));
  }
View Full Code Here

Examples of com.lowagie.tools.arguments.StringArgument

   * Constructs a DvdCover object.
   */
  public DvdCover() {
    menuoptions = MENU_EXECUTE | MENU_EXECUTE_SHOW | MENU_EXECUTE_PRINT;
    arguments.add(new FileArgument(this, "destfile", "The file to which the PDF has to be written", true, new PdfFilter()));
    arguments.add(new StringArgument(this, "title", "The title of the DVD", String.class.getName()));
    arguments.add(new StringArgument(this, "backgroundcolor", "The backgroundcolor of the DVD Cover (for instance 0xFFFFFF)", Color.class.getName()));
    arguments.add(new ImageArgument(this, "front", "The front image of the DVD Cover"));
    arguments.add(new ImageArgument(this, "back", "The back image of the DVD Cover"));
    arguments.add(new ImageArgument(this, "side", "The side image of the DVD Cover"));
  }
View Full Code Here

Examples of com.lowagie.tools.arguments.StringArgument

  /**
   * Constructs an InpectPDF object.
   */
  public InspectPDF() {
    arguments.add(new FileArgument(this, "srcfile", "The file you want to inspect", false, new PdfFilter()));
    arguments.add(new StringArgument(this, "ownerpassword", "The owner password if the file is encrypt", String.class.getName()));
  }
View Full Code Here

Examples of com.lowagie.tools.arguments.StringArgument

   * Sets the arguments.
   * @param args the arguments as String-array.
   */
  public void setMainArguments(String[] args) {
      int counter = 0;
      StringArgument argument;
        for (Iterator i = arguments.iterator(); i.hasNext(); ) {
          argument = (StringArgument) i.next();
          if (args.length > counter) {
            argument.setValue(args[counter]);
          }
          else {
            break;
          }
          counter++;
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.