Package com.lowagie.toolbox.arguments

Examples of com.lowagie.toolbox.arguments.FileArgument


  /**
   * Constructs an XML2Bookmarks object.
   */
  public XML2Bookmarks() {
    arguments.add(new FileArgument(this, "xmlfile", "the bookmarks in XML", false));
    arguments.add(new FileArgument(this, "pdffile", "the PDF to which you want to add bookmarks", false, new PdfFilter()));
    arguments.add(new FileArgument(this, "destfile", "the resulting PDF", true, new PdfFilter()));
  }
View Full Code Here


    /**
     * This tool lets you add a text watermark to all pages of a document.
     */
    public Watermarker() {
        super();
        FileArgument inputfile = new FileArgument(this, "srcfile",
                                                  "The file you want to watermark", false,
                                                  new PdfFilter());
        arguments.add(inputfile);
        arguments.add(new StringArgument(this, "watermark",
                                         "The text that can be used as watermark"));
        arguments.add(new IntegerArgument(this, "fontsize",
                                         "The fontsize of the watermark text"));
        arguments.add(new FloatArgument(this, "opacity",
                                         "The opacity of the watermark text"));
        destfile = new FileArgument(this, "destfile",
                                    "The file to which the watermarked PDF has to be written",
                                    true, new PdfFilter());
        arguments.add(destfile);
        inputfile.addPropertyChangeListener(destfile);
    }
View Full Code Here

  /**
   * 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"));
    arguments.add(new ColorArgument(this, "backgroundcolor", "The backgroundcolor of the DVD Cover (for instance 0xFFFFFF)"));
    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

  /**
   * Constructs an Divide object.
   */
  public Divide() {
    menuoptions = MENU_EXECUTE | MENU_EXECUTE_SHOW;
    arguments.add(new FileArgument(this, "srcfile",
        "The file you want to divide", false, new PdfFilter()));
    arguments.add(new FileArgument(this, "destfile", "The resulting PDF",
        true, new PdfFilter()));
  }
View Full Code Here

  /**
   * 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

  /**
   * 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");
View Full Code Here

  }
  /**
   * Constructs an Split object.
   */
  public Split() {
    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 IntegerArgument(this, "pagenumber", "The pagenumber where you want to split"));
  }
View Full Code Here

  /**
   * Constructs a Concat object.
   */
  public Concat() {
    menuoptions = MENU_EXECUTE | MENU_EXECUTE_SHOW;
                arguments.add(new FileArgument(this, "srcfile1", "The first PDF file", false, new PdfFilter()));
    arguments.add(new FileArgument(this, "srcfile2", "The second PDF file", false, new PdfFilter()));
    arguments.add(new FileArgument(this, "destfile", "The file to which the concatenated PDF has to be written", true, new PdfFilter()));
  }
View Full Code Here

  /**
   * Constructs an Bookmarks2XML object.
   */
  public Bookmarks2XML() {
    arguments.add(new FileArgument(this, "pdffile", "the PDF from which you want to extract bookmarks", false, new PdfFilter()));
    arguments.add(new FileArgument(this, "xmlfile", "the resulting bookmarks file in XML", true));
  }
View Full Code Here

  /**
   * Constructs a ReversePages object.
   */
  public RemoveLaunchApplication() {
    menuoptions = MENU_EXECUTE | MENU_EXECUTE_SHOW;
    arguments.add(new FileArgument(this, "srcfile",
                                   "The file from which you want to remove Launch Application actions", false,
                                   new PdfFilter()));
    arguments.add(new FileArgument(this, "destfile",
                                   "The file to which the cleaned up version of the original PDF has to be written", true,
                                   new PdfFilter()));
  }
View Full Code Here

TOP

Related Classes of com.lowagie.toolbox.arguments.FileArgument

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.