I have a PDF form. I am using FillField to input data into the fields. I want to then flatten the fields, so the values are part of the PDF, and no longer in a form.
The process runs, and it creates my new PDF, but when I open the PDF i get the following error:
An error exists on this page. Acrobat may not display the page correctly.
My forms fields are gone, as well as my values.
Here is the code I am using for this:
FileStream stream = new FileStream("D:\\Project\\PDFProofofConcept\\PDFProofofConcept\\testing.pdf", FileMode.Open);
Form form = new Form(stream);
form.FillField("Your Name", "My Name");
form.FillField("Your Title", "Software Developer");
form.FlattenAllFields();
form.DestFileName = "D:\\Project\\PDFProofofConcept\\PDFProofofConcept\\MyTest.pdf";
form.Save();
I am using this as a proof of concept for us to purchase this within the next couple of days, so a resolution to this would be great, so we can make a purchase.
I have attached the original file, and the second file.