System.IO.FileNotFoundException: Could not load file or assembly 'System.Drawing.Common

Hello,

Im using this control to sign my pdf on a new console project on NET 6

            PdfLoadedDocument document = new PdfLoadedDocument(MyPDF);

            PdfSignature signature = new PdfSignature(document, document.Pages[0], null, "DigitalSignature");

            signature.ComputeHash += Signature_ComputeHash;

in the line new pdfsignature recibe following error:

System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Drawing.Common, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. 


hope you can help me.

Martin


3 Replies

SV Surya Venkatesan Syncfusion Team January 25, 2022 12:17 PM UTC

Hi Martin,


We have created a sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PDF_Sample_Sign721920709 to perform compute hash with signature in PDF document.


Kindly try the attached sample and if the issue persists, kindly revert with the modified sample or complete code snippet to replicate the issue to analyze and provide the precise solution on this.


Regards,

Surya V



MD Martin de los Rios January 26, 2022 09:03 AM UTC


works perfect.

Thanks

Martin



SV Surya Venkatesan Syncfusion Team January 27, 2022 11:16 AM UTC

Hi Martin,


Thank you for your update. We are glad to know that your problem has been solved. 


Regards,

Surya V


Loader.
Up arrow icon