Package com.itextpdf.text.pdf.mc
Class MCFieldFlattener
- java.lang.Object
-
- com.itextpdf.text.pdf.mc.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
-
-
Constructor Summary
Constructors Constructor Description MCFieldFlattener()
-
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.
-
-
-
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 PDFos
- the OutputStream to which the flattened file will be written- Throws:
java.io.IOException
DocumentException
-
-