Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Oct 24, 2022 5:21 pm

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

ndiab1983
 
Posts: 3
Joined: Mon Oct 24, 2022 5:00 pm

Tue Oct 25, 2022 6:36 am

Hello,

Thanks for your inquiry.
Sorry we have not received any attached documents from this post.
I used the latest Spire.PDF Pack(Hot Fix) Version:8.10.5 to do an initial test, and I found that the signature picture is clear. If you are using an older version, I suggest you test again with this version. If your problem persists after the test, to help us further investigate it, please upload your file and image again, if they exceed the size limitation for attachment. You could upload them to the DropBox or OneDrive and then share the download link with us. Thank you in advance.

Sincerely,
Simple
E-iceblue support team
User avatar

Simple.Li
 
Posts: 248
Joined: Fri Jul 01, 2022 2:33 am

Tue Oct 25, 2022 10:59 am

Yes Thank you for your Response i installed the dll and I try in my application but still the signature image not clear so please Check the attached file

ndiab1983
 
Posts: 3
Joined: Mon Oct 24, 2022 5:00 pm

Wed Oct 26, 2022 3:19 am

Hello,

Thanks for your feedback.
I did notice that the signature image of your screenshot is not very clear. To help us have further investigation and give you an accurate solution, please share us with your input testing PDF file as well as your original image. Thanks in advance.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1533
Joined: Wed Apr 25, 2018 3:20 am

Wed Oct 26, 2022 8:31 am

Please Can you check Attached File


i waiting your reply thank you

ndiab1983
 
Posts: 3
Joined: Mon Oct 24, 2022 5:00 pm

Wed Oct 26, 2022 10:17 am

Hello,

Thank you for sharing.
I used the following code to test your files, the signature picture of "signOut.pdf" is clear when viewing in 100% zoom mode. If you want to view in a larger zoom mode, the clarity will be changed definitely. You can zoom it in the picture viewer tool to have a test. If there is still any issues, just feel free to write back.
Code: Select all
        //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();


Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1533
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.PDF