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.

Tue Aug 14, 2018 1:23 pm

Hello,

Is there a possibility to check whether the digital signature overlapping with the text before applying digital signature using spire.pdf

Thanks in advance.

vsk116
 
Posts: 5
Joined: Mon Aug 13, 2018 1:20 pm

Wed Aug 15, 2018 7:17 am

Hello,

Thanks for your letter.
You could refer to below code snippet to achieve your requirement, If there is any question, just feel free to write back.
Code: Select all
//input x coordinate
Console.WriteLine("Please input x coordinate:");
float x = Convert.ToSingle(Console.ReadLine());
//input y coordinate
Console.WriteLine("Please input y coordinate:");
float y = Convert.ToSingle(Console.ReadLine());
//Check if there is text content in the rectangle
string text = doc.Pages[0].ExtractText(new RectangleF(x, y, 100, 100));
if (text == "")
{
     //Sign signature in the rectangle
     ...
}
else
Console.WriteLine("overlap with text!");

Thanks and Regards,
Lisa
E-iceblue support team
User avatar

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

Thu Aug 16, 2018 5:34 am

Hello,

Thanks for the response.
will this code works if there is already a signature in that particular location.

Does ExtractText method extracts existing digital signature as text?

vsk116
 
Posts: 5
Joined: Mon Aug 13, 2018 1:20 pm

Thu Aug 16, 2018 11:01 am

Hello,

Thanks for your feedback.
Please kindly note that the ExtractText method couldn't extract existing digital signature as text. If there is any other question, welcome to write back.

Sincerely,
Lisa
E-iceblue support team
User avatar

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

Thu Aug 16, 2018 12:19 pm

Hello,

Thanks for the response,
Is it possible to show green tick mark on digital signature using spire.pdf.
We have used signature image property but it is hiding issuer name.

We need to show green tick mark in the middle of the digital signature with issuer name.

vsk116
 
Posts: 5
Joined: Mon Aug 13, 2018 1:20 pm

Fri Aug 17, 2018 8:30 am

Hello,

To help us investigate your issue accurately, please share us with your original PDF file, generated file, your testing code as well as a screenshot to show your expected effect. You could send them to us via email (support@e-iceblue.com). Thanks in advance.

Sincerely,
Lisa
E-iceblue support team
User avatar

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

Mon Aug 20, 2018 6:42 am

Hello Shravan,

Thank you for sharing the screenshot via email.
Please also provide your original PDF file, generated file and your testing code, so that we can better investigate your issue. Thanks in advance.

Sincerely,
Lisa
E-iceblue support team
User avatar

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

Return to Spire.PDF