throws IOException, DocumentException
{
PdfReader reader = new PdfReader(config.pdfInputStream);
PdfStamper stamper = new PdfStamper(reader, config.pdfOutputStream, '\0');
if (config.formInputStream != null) {
stamper.getAcroFields().setFields(new XfdfReader(config.formInputStream));
}
stamper.setFormFlattening(config.flatten);
stamper.close();
}