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.
Thu Aug 08, 2024 3:55 pm
Hi,
I am trying to get the SignNameOnly signature to be centered in the Bounds that are defined. Somehow it is being truncated for no reason that I can see..
- Code: Select all
PdfCertificate cert = new PdfCertificate(@"MyLocation\Certs\A3055389.pfx", "");
PdfSignature signature = new PdfSignature(pdf, page, cert, "Signature");
signature.Certificated = true;
signature.GraphicsMode = GraphicMode.SignNameOnly;
signature.Name = "Tim Alvord";
signature.Bounds = new RectangleF(81, 631, 99, 14);
signature.SignNameFont = new PdfTrueTypeFont(new Font("Lucida Handwriting", 8f, FontStyle.Regular));
signature.SignTextAlignment = SignTextAlignment.Center;
As you can see there is plenty of room to display the entire name, but it is missing the last 5 characters.
Login to view the files attached to this post.
-
tim8w123
-
- Posts: 13
- Joined: Wed Feb 22, 2023 3:55 pm
Fri Aug 09, 2024 7:49 am
Hello,
Thanks for your inquiry. To make the text appear in full, please set 'signature.GraphicsMode = GraphicMode.SignDetail'. If you have any other questions, please feel free to write to me.
Sincerely,
Amin
E-iceblue support team
-
Amin.Gan
-
- Posts: 283
- Joined: Mon Jul 15, 2024 5:40 am
Fri Aug 09, 2024 2:00 pm
That worked! Thanks again.
-
tim8w123
-
- Posts: 13
- Joined: Wed Feb 22, 2023 3:55 pm
Mon Aug 12, 2024 1:42 am
Hello,
Thanks for your reply.
I'm glad to hear this news. If you have any other questions, please feel free to write to me.
Sincerely,
Amin
E-iceblue support team
-
Amin.Gan
-
- Posts: 283
- Joined: Mon Jul 15, 2024 5:40 am