Change full PDF Font with ITextSharp

Posted by Penyo under ASP.NET on 7/4/2012 | Points: 10 | Views : 3840 | Status : [Member] | Replies : 2
Hello.
I using iTextSharp dll. I have PDF template and I create a finished form from this template.
I want to change font for all pdf, but I can't. I add "AddSubstitutionFont" in PdfStamper, but in pdf is default font. I tried with
AcroFields.SetFieldProperty(....); and AcroFields.SetField(...);
but labels is again with default font.
Can you help me?
Thanks!




Responses

Posted by: Panric on: 7/4/2012 [Member] Starter | Points: 25

Up
0
Down
Hi penyo,
Seeing this part of your code, I did not figure out what's wrong there in your side. I found two things for your stuff. Please see:
1.http://www.mikesdotnetting.com/Article/81/iTextSharp-Working-with-Fonts
2. A 3rd Party PDF (commercial one) http://www.e-iceblue.com/Introduce/pdf-for-net-introduce.html

Penyo, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Penyo on: 7/5/2012 [Member] Starter | Points: 25

Up
0
Down
Hello.

Thanks for fast reply!
I tried with desition in first link, but there is to add font when create a new element, but I need to change for existing.

Thanks!

Penyo, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response