Hello Sir,
I have issue when i added new image as signature it appear not clear and bad resolution so please i want purchase the licenses but I'm scare from this issue
can you check the attached file
//Load a sample PDF file
PdfDocument doc = new PdfDocument();
doc.LoadFromFile(@"sample.pdf");
PdfCertificate cert = new PdfCertificate(@"my.pfx", "password");
//Create a PdfSignature object and specify its position and size
PdfSignature signature = new PdfSignature(doc, doc.Pages[0], cert, "MySignature");
RectangleF rectangleF = new RectangleF(150, 450, 150, 100);
signature.Bounds = rectangleF;
signature.Certificated = true;
//Set the graphics mode to image only
signature.GraphicsMode = GraphicMode.SignImageOnly;
Image image = Image.FromFile(@"Signature file.png");
//Set the sign image source
signature.SignImageSource = PdfImage.FromImage(image);
signature.DocumentPermissions = PdfCertificationFlags.ForbidChanges | PdfCertificationFlags.AllowFormFill;
//Save to file
doc.SaveToFile(@"signOut.pdf");
doc.Close();