I am having an issue trying to Fill form fields. I was getting the following error
Constructor on type 'PdfSharp.Pdf.AcroForms.PdfAcroForm' not found.
A little background. I am trying to bundle the acrobat form in the resources so I am reading the form in from the resources using Application.GetResourceStream, then using PdfReader.Open with the stream.
Looking into the source it appears as there is no public constructor for the AcroForm object. There are 2 internal contstructors overloads. The error is happening on the Activator.CreateInstance. so I changed the constructor to public.
Doing that gives me the following error
Attempt by method 'PdfSharp.Pdf.PdfDictionary+DictionaryElements.CreateArray(System.Type, PdfSharp.Pdf.PdfArray)' to access method 'PdfSharp.Pdf.AcroForms.PdfAcroField+PdfAcroFieldCollection..ctor(PdfSharp.Pdf.PdfArray)' failed.
Can anyone help me with this?