Package com.itextpdf.text.pdf.mc
Class MCFieldFlattener
java.lang.Object
com.itextpdf.text.pdf.mc.MCFieldFlattener
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(PdfReader reader, OutputStream os) Processes a properly tagged PDF form.
-
Constructor Details
-
MCFieldFlattener
public MCFieldFlattener()
-
-
Method Details
-
process
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:
IOException
DocumentException
-