msaranya 0 Newbie Poster

Hi,
I am using itextsharp dll for creating pdf from dot net... From database I am fetching certain fields which are in Tamil and creating a pdf.

This is how I have declared my tamil unicode font

Dim bflatha As BaseFont = BaseFont.CreateFont("C:\WINDOWS\Fonts\latha.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED)

Dim Font As Font = New Font(bflatha, 6.7)

dim ph as phrase = New Phrase("வாக்காளர் பெயர் : ", font)

If I add this phrase to my document, the letters in " பெ " gets interchanged. Further "Thu" letter gets displayed wrongly.

If I copy the same text from PDF and put it into some word file, it gets displayed correctly.


Can anyone help me with this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.