Examples of PdfFilter


Examples of com.lowagie.tools.arguments.filters.PdfFilter

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

Examples of com.lowagie.tools.arguments.filters.PdfFilter

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

Examples of com.lowagie.tools.arguments.filters.PdfFilter

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

Examples of com.lowagie.tools.arguments.filters.PdfFilter

   * 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

Examples of com.lowagie.tools.arguments.filters.PdfFilter

   */
  public Addripversion() {
    super();
    FileArgument inputfile = new FileArgument(this, "srcfile",
                                   "The file you want to add the RIP Version", false,
                                   new PdfFilter());
    arguments.add(inputfile);
    destfile = new FileArgument(this, "destfile",
                                   "The file to which the Addripversion PDF has to be written",
                                   true, new PdfFilter());
    arguments.add(destfile);
    inputfile.addPropertyChangeListener(destfile);
  }
View Full Code Here

Examples of com.lowagie.tools.arguments.filters.PdfFilter

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

Examples of org.pdfsam.console.utils.PdfFilter

     * @return PdfFile array from the input directory
     */
    protected PdfFile[] getPdfFiles(final File directory) {
        PdfFile[] retVal = null;
        if (directory != null && directory.isDirectory()) {
            File[] fileList = directory.listFiles(new PdfFilter());
            Arrays.sort(fileList, new FilenameComparator());
            ArrayList list = new ArrayList();
            for (int i = 0; i < fileList.length; i++) {
                list.add(new PdfFile(fileList[i], null));
            }
View Full Code Here

Examples of org.pdfsam.guiclient.utils.filters.PdfFilter

        if (fileList != null) {
          if (fileList.size() != 1) {
            log.warn(GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Please select a single pdf document."));
          } else {
            File selectedFile = fileList.get(0);
            if (selectedFile != null && new PdfFilter(false).accept(selectedFile)) {
              loader.addFile(selectedFile, true);
              retVal = true;
            } else {
              log.warn(GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"File type not supported."));
            }
View Full Code Here

Examples of org.pdfsam.guiclient.utils.filters.PdfFilter

   * @param file
   * @param password
   */
  public void addTab(File file, String password){
    try{
      if (file!=null && file.exists() && new PdfFilter(false).accept(file)){
          JVisualPdfPageSelectionPanel inputPanel = new JVisualPdfPageSelectionPanel(JVisualPdfPageSelectionPanel.HORIZONTAL_ORIENTATION, true, false, false, JVisualPdfPageSelectionPanel.STYLE_TOP_PANEL_HIDE, JVisualPdfPageSelectionPanel.DND_SUPPORT_NONE, JVisualPdfPageSelectionPanel.MULTIPLE_INTERVAL_SELECTION);
          inputPanel.getThumbnailList().setTransferHandler(new ClosableTabTransferHandler(this));
          if(outputPathPropertyChangeListener!=null){
            inputPanel.enableSetOutputPathMenuItem();
            inputPanel.addPropertyChangeListener(outputPathPropertyChangeListener);
View Full Code Here

Examples of org.pdfsam.guiclient.utils.filters.PdfFilter

  @Override
  public Boolean call() {
    Boolean retVal = Boolean.FALSE;
    try {
      if (inputFile != null) {
        if (new PdfFilter(false).accept(inputFile)) {
          wipText = GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),
              "Please wait while reading")
              + " " + inputFile.getName() + " ...";
          panel.addWipText(wipText);
          panel.updateTableRow(index, getPdfSelectionTableItem(inputFile, password, pageSelection));
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.