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 Mar 17, 2016 5:09 pm

Hello,

I need to change the font size of a labeled digital sign. It is that possible?

Here's my code:
Code: Select all
Dim pfxPath As String = GetAppPath() & "\xxx.pfx"
Dim cert As New PdfCertificate(pfxPath, "xxx")
Dim signature As New PdfSignature(doc, doc.Pages(0), cert, "xxx")

signature.Bounds =  New RectangleF(New PointF(50, 15), New SizeF(230, 80))

signature.DigitalSignerLable = "Firmat digitalment per: "
signature.DigitalSigner = "xxx"
signature.DistinguishedName = "(DN)"
signature.DateLabel = "Data: "
signature.Date = Now
signature.ContactInfoLabel = "Contacte: "
signature.ContactInfo = "[email protected]" '

signature.IsTag = True
signature.ConfigGraphicType = ConfiguerGraphicType.TextSignInformation
signature.DocumentPermissions = PdfCertificationFlags.ForbidChanges
signature.Certificated = True


Many thanks in advance! ;)

cescude
 
Posts: 2
Joined: Mon Sep 02, 2013 9:14 am

Fri Mar 18, 2016 3:02 am

Hi,

Thanks for your posting.
Sorry that at present our Spire.PDF doesn't support the feature, but we have added it as new feature into our schedule.
We will inform you when it is supported.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3011
Joined: Wed Jun 27, 2012 8:50 am

Mon Mar 28, 2016 5:55 am

Hi,

Thanks for waiting.
We support to set font size when adding signature.
Welcome to download and test Spire.PDF Pack(Hot Fix) Version:3.6.260.
sample code:
Code: Select all
 signature.SignInfoFont.Add(SignInfoType.SignInformation, new PdfFont(PdfFontFamily.Helvetica, 8f, PdfFontStyle.Bold));

The feature to modify font size of existed signature can be not implemented because signature will be invalid after modifying.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3011
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF