Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
How to Type/Draw Text In Bengali (Bangla/Indic) |
Post Reply ![]() |
Author | |
m_alam ![]() Team Player ![]() ![]() Joined: 02 Aug 11 Location: Bangladesh Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() 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 Edited by m_alam - 07 Dec 17 at 10:20AM |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
m_alam ![]() Team Player ![]() ![]() Joined: 02 Aug 11 Location: Bangladesh Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
tfrost ![]() Senior Member ![]() Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store