In version 5.4.2 of itextsharp, I was able to use: (fragment in VB)
Dim pdfWriter As iTextSharp.text.pdf.PdfCopy
pdfwriter = New iTextSharp.text.pdf.PdfCopy(outputPDFDocument, New FileStream(destfname, FileMode.Create))
pdfWriter.CopyAcroForm(reader)
to copy a form from one document to another.
5.4.4 CopyAcroFormno longer exists under PdfCopyor elsewhere - what's the alternative?
source
share