« Return to Thread: Apostrophe not displayed in pdf field

Apostrophe not displayed in pdf field

by Eve L'Écuyer :: Rate this Message:

Reply to Author | View in Thread

Hello,
 
I find ITextSharp really usefull and easy to use but I have one problem that I have'nt been able to solve.
 

I am using iTextSharp in a asp.net  to fill fields on an existing PDF document using PdfReader and PdfStamper :

Dim reader As PdfReader = New PdfReader(Request.PhysicalApplicationPath + "Certificats\caij_certificat_vide_sign.pdf")

Dim stamp1 As PdfStamper = New PdfStamper(reader, New FileStream("X:\Certificats\" + CertificatId.ToString() + ".pdf", FileMode.Create))

Dim form1 As AcroFields = stamp1.AcroFields()

form1.SetField(

"nom", "Ève L'Écuyer")

form1.SetField(

"titre1", "Passez maître dans l'art")

stamp1.FormFlattening =

True

stamp1.Close()

Response.Redirect(

"X:\Certificats\" + CertificatId.ToString() + ".pdf")

The problem is : Apostrophes are skipped and not displayed in the resulting pdf.

For example : "Ève L'Écuyer" becomes "Ève LÉcuyer" and "Passez maître dans l'art" becomes "Passez maître dans lart"

I have been looking  around for 2 days but can't find any solution.

Thanks for any help!

Ève L'Écuyer

 

 


------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

 « Return to Thread: Apostrophe not displayed in pdf field