com.itextpdf.text.pdf.mc
Class MCFieldFlattener

java.lang.Object
  extended by com.itextpdf.text.pdf.mc.MCFieldFlattener

public class MCFieldFlattener
extends 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


Constructor Summary
MCFieldFlattener()
           
 
Method Summary
 void process(PdfReader reader, 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,
                    OutputStream os)
             throws 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:
IOException
DocumentException


Copyright © 2014. All Rights Reserved.