Class FieldRemover


  • public class FieldRemover
    extends java.lang.Object
    Remove an AcroForm field. Use this example as a starting point if you are writing your own field editor.
    Author:
    Tilman Hausherr
    • Constructor Summary

      Constructors 
      Constructor Description
      FieldRemover()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      void remove​(java.lang.String src, java.lang.String dst, java.lang.String fullyQualifiedFieldname)
      Remove the first field with a matching fully qualified name from the acroform field tree and its widgets from the page annotations.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FieldRemover

        public FieldRemover()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • remove

        public void remove​(java.lang.String src,
                           java.lang.String dst,
                           java.lang.String fullyQualifiedFieldname)
                    throws java.io.IOException
        Remove the first field with a matching fully qualified name from the acroform field tree and its widgets from the page annotations.
        Parameters:
        src - Source file name.
        dst - Destination file name.
        fullyQualifiedFieldname - fully qualified field name.
        Throws:
        java.io.IOException