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.

Fri Jul 17, 2020 9:32 am

Hi admin!
Please help me about set width for signature image and Text special. For example image width =100, text =300. I alway see a both of them the same width after I signed on pdf file.

loidv_nbs
 
Posts: 1
Joined: Thu Jul 16, 2020 8:49 am

Fri Jul 17, 2020 11:04 am

Hello,

Thanks for your inquiry.
At present, when using our Spire.PDF for .NET to sign pictures and text at the same time, they will each take half of the signature rectangle. Sorry we don't support customizing the image and text width yet. But we have added it as a new feature to the upgrade list with the ticket SPIREPDF-3284. If there it is implemented in the future, we will inform you.
Sorry for the inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Mon Dec 07, 2020 10:10 am

Hello,

Hope you are doing well.
Glad to tell you that we just released Spire.PDF Pack(Hot Fix) Version:6.12.3 that supports customizing text/image's locations when adding digital signatures. Welcome to download it from the following links.
Our website: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.PDF/6.12.3

Code example:
Code: Select all
signature.ConfigureCustomGraphics(DrawGraphics);
private void DrawGraphics(PdfCanvas g)
{
   g.DrawString("Signed by:Tom", new PdfFont(PdfFontFamily.Helvetica, 12f), PdfBrushes.Red, new Rectangle(0, 0, 120, 20));
    string inputFile = "C:/image.png";
    PdfImage img = PdfImage.FromFile(inputFile);
    g.DrawImage(img, 0, 60, 150, 50);
}


Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Thu Dec 17, 2020 9:23 am

Hello,

Hope you are doing well.
Have you tested the new feature? Does it meet your needs?
Thanks in advance for your feedback.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.PDF