PDFsharp & MigraDoc Foundation

accessing AcroForm field throws File not found exc. (C#)
Page 1 of 1

Author:  Notion [ Thu Apr 08, 2021 1:00 pm ]
Post subject:  accessing AcroForm field throws File not found exc. (C#)

Hey everyone,

when I try to access my PdfAcroForm form.Fields by either integer or name, I get the following error:

System.IO.FileNotFoundException: "Could not load file or assembly 'System.Drawing.Common, Version =, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.

I can access the forms.Fields.Count variable though and it returns the correct number of fields for different pdf forms. Tried installint System.Drawing.Common via nuget but only 5.something and 4.5 were available. Installing 4.5 doesnt change the error, installing 5.something changes the error but still doesnt work.

Maybe related to this: https://github.com/empira/PDFsharp/issues/55 ?
Not getting NPEs though. Is this fixed in the nuget package or still causing trouble?

Author:  TH-Soft [ Fri Apr 09, 2021 3:00 pm ]
Post subject:  Re: accessing AcroForm field throws File not found exc. (C#)

Are you using "official" PDFsharp NuGet packages?

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group