Class MCFieldFlattener


  • public class MCFieldFlattener
    extends java.lang.Object
    Removes all interactivity from an AcroForm, maintaining the structure tree. DISCLAIMER: - Use this class only if the form is properly tagged. - This class won't work with pages in which the CTM is changed - This class may not work for form fields with more than one widget annotation
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void process​(PdfReader reader, java.io.OutputStream os)
      Processes a properly tagged PDF form.
      • Methods inherited from class java.lang.Object

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

      • MCFieldFlattener

        public MCFieldFlattener()
    • Method Detail

      • process

        public void process​(PdfReader reader,
                            java.io.OutputStream os)
                     throws java.io.IOException,
                            DocumentException
        Processes a properly tagged PDF form.
        Parameters:
        reader - the PdfReader instance holding the PDF
        os - the OutputStream to which the flattened file will be written
        Throws:
        java.io.IOException
        DocumentException