German special Caracters are cut off

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

German special Caracters are cut off

Toddel
Hello...

i have a Problem and i don't know how to solve it...

We have names with special caracters like "Schütze" and in the generated pdf the name is "Schtze"... Exept from this problem everything works fine...

I fill fields from a template with SetField.

Here is the code:

  Dim MyFile As FileStream = New System.IO.FileStream(Server.MapPath("temp\") & Session("AusgewaehlterFall") & "_Datenblatt_ZSP.pdf", System.IO.FileMode.Create)
            Dim pdfTemplate As String = Server.MapPath("Vorlage\DatenblattZSPVorlage.pdf")
            Dim pdfReader As New PdfReader(pdfTemplate)
            Dim pdfStamper As New PdfStamper(pdfReader, MyFile)
            Dim StamperFields As AcroFields = pdfStamper.AcroFields

            Datjetzt = Format$(Now, "dd.MM.yyyy")

            StamperFields.SetField("FrameDatum", Datjetzt)
            StamperFields.SetField("FrameNachname", DBNachname)
            StamperFields.SetField("FrameVorname", DBVorname)

Can anyone help me with this?

Thank you...
Loading...