Class FieldRemover

java.lang.Object
org.apache.pdfbox.examples.interactive.form.FieldRemover

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

    • FieldRemover

      public FieldRemover()
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Throws:
      IOException
    • remove

      public void remove(String src, String dst, String fullyQualifiedFieldname) throws 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:
      IOException