How to Type/Draw Text In Bengali (Bangla/Indic)
Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3530
Printed Date: 13 May 25 at 9:07AM Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com
Topic: How to Type/Draw Text In Bengali (Bangla/Indic)
Posted By: m_alam
Subject: How to Type/Draw Text In Bengali (Bangla/Indic)
Date Posted: 07 Dec 17 at 10:20AM
Hi, i need to type/draw text in Bengali (Bangla/Indic) Script.
after trying on many hours, i can't get it to work.
this is the code i am using: Dim qp As DebenuPDFLibraryDLL1411.PDFLibrary Dim drawstr As String Dim fontID1 As Integer qp = New DebenuPDFLibraryDLL1411.PDFLibrary("c:\Program Files\Quick PDF Library v14.11\DLL\DebenuPDFLibraryDLL1411.dll") drawstr = "; স্কাউট হওয়া ভারি মজা ; ; তোমাদের জন্য মুক্তিযুদ্ধের গল্প ;" fontID1 = qp.AddTrueTypeFontFromFile("g:\fonts\SolaimanLipi.ttf") 'fontID1 = qp.AddTrueTypeSubsettedFontFromFile("g:\fonts\SolaimanLipi.ttf", drawstr, 0) Rem this reutrn same text qp.SelectFont(fontID1) qp.DrawText(100, 700, drawstr) qp.SaveToFile("g:\test.pdf") qp = Nothing
and this is what i am getting:
https://www.dropbox.com/s/ijsgst8mk20spp7/03.pdf?dl=0
how can i make it to look like same as in the string?
thanks in advance best regards
|
Replies:
Posted By: Ingo
Date Posted: 07 Dec 17 at 7:42PM
Hi Alam,
these links from the forum here will give you an idea where to dive into:
http://www.quickpdf.org/forum/drawing-unicode-text_topic2090_post8915.html?KW=codepage#8915
http://www.quickpdf.org/forum/code-page-936-gb2312-charset_topic2409_post10150.html?KW=Draw+Japanese#10150
http://www.quickpdf.org/forum/exporting-formfield-fonts_topic3001_post12139.html?KW=Draw+Arabic#12139
------------- Cheers, Ingo
|
Posted By: m_alam
Date Posted: 08 Dec 17 at 3:41AM
Ingo wrote:
Hi Alam, these links from the forum here will give you an idea where to dive into: [links]
|
sir, i have tried those links, i think link 2 is no use..
i have tried 65000 char example using ""Arial Unicode MS"" it returns garbage...
i have tried 65000 char example using truetypefont from file and used my font ""Arial Unicode MS"" it same as the sample in main post.
so, i think 65000 is not the fact/issue.
from the third link i have tried:
int fid1 = QP.AddTrueTypeSubsettedFont("Arial Unicode MS", "", 4);
it also returns garbase.. and if i use my font then it returns blanks text (nothing)
by the way.. i think there is something called shaping text character (it is what named in pdflib)..
and also this is (my text) indic/bengali text/script that required something called glyph.
is that something look familiar?
thanks in advance beset regards
|
Posted By: tfrost
Date Posted: 08 Dec 17 at 4:38PM
I have tried extracting the text from your PDF with both Debenu PDF Tools Pro and other tools I have, and the extracted text looks exactly as it is in your original posting. The same happens if I open the PDF in Word and Word creates an editable version. So this looks to me like a bug in the library, and I suggest that you open a support case with Foxit.
|
|