Package com.lowagie.tools.arguments

Examples of com.lowagie.tools.arguments.FileArgument


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


  /**
   * 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 Tiff2Pdf object.
   */
  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

  /**
   * Creates a ViewImageXObjects object.
   */
  public ImageXRefViewer() {
    arguments.add(new FileArgument(this, "srcfile",
        "The file you want to inspect", false, new PdfFilter()));
  }
View Full Code Here

  /**
   * Constructs an Decrypt object.
   */
  public Decrypt() {
    arguments.add(new FileArgument(this, "srcfile", "The file you want to decrypt", false, new PdfFilter()));
    arguments.add(new FileArgument(this, "destfile", "The file to which the decrypted 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()));
  }
View Full Code Here

  /**
   * Constructs a ExtractAttachements object.
   */
  public ExtractAttachments() {
    FileArgument f = new FileArgument(this, "srcfile",
        "The file you want to operate on", false, new PdfFilter());
    f.setLabel(new PdfInformationPanel());
    arguments.add(f);
  }
View Full Code Here

  /**
   * Constructs a Txt2Pdf object.
   */
  public Txt2Pdf() {
    menuoptions = MENU_EXECUTE | MENU_EXECUTE_SHOW | MENU_EXECUTE_PRINT_SILENT;
    arguments.add(new FileArgument(this, "srcfile", "The file you want to convert", false));
    arguments.add(new FileArgument(this, "destfile", "The file to which the converted text has to be written", true, new PdfFilter()));
    PageSizeArgument oa1 = new PageSizeArgument(this, "pagesize", "Pagesize");
    arguments.add(oa1);
    OptionArgument oa2 = new OptionArgument(this, "orientation", "Orientation of the page");
    oa2.addOption("Portrait", "PORTRAIT");
    oa2.addOption("Landscape", "LANDSCAPE");
View Full Code Here

  /**
   * Constructs a Burst object.
   */
  public CompressDecompressPageContent() {
    FileArgument f = new FileArgument(this, "srcfile", "The file you want to compress/decompress", false, new PdfFilter());
    f.setLabel(new PdfInformationPanel());
    arguments.add(f);
    arguments.add(new FileArgument(this, "destfile", "The file to which the compressed/decompressed PDF has to be written", true, new PdfFilter()));
    OptionArgument oa = new OptionArgument(this, "compress", "compress");
    oa.addOption("Compress page content", "true");
    oa.addOption("Decompress page content", "false");
    arguments.add(oa);
  }
View Full Code Here

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

TOP

Related Classes of com.lowagie.tools.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.