I want to apply Script fonts to particular field value in PDF.
I am using aspose PDF. But that font is not applying.
Here is steps I have followed :
I have downloaded ttf file. Created new folder in project and added font in that folder.
Then I am fetching PDF form fields and loop through it foreach and then trying to applying that font to only one value which I needed.
foreach (Field formField in pdfDocument.Form.Fields)
{
switch (formField.PartialName.ToString())
{
case "f1_32[0]":
formField.Value = request.Signature;
formField.DefaultAppearance.FontName = "E:\\Projects\\Testprojectname\\Fonts\\Photograph_Signature.ttf";
break;
}
}