An important message to our customers about the current COVID-19/Coronavirus situation. LEARN MORE.
ImageGear .NET v24.6 added support for viewing PDF documents with XFA content. I’m using v24.8, and upon trying to open an XFA PDF, I get a SEHException for some reason…
Why might this be happening?
One reason could be because you need to execute the following lines after initializing the PDF component, and prior to loading an XFA PDF:
// Allow opening of PDF documents that contain XFA form data.
IImGearFormat pdfFormat = ImGearFileFormats.Filters.Get(ImGearFormats.PDF);
pdfFormat.Parameters.GetByName("XFAAllowed").Value = true;
This will enable XFA PDFs to be opened by the ImageGear .NET toolkit.