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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - How to Type/Draw Text In Bengali (Bangla/Indic)
  FAQ FAQ  Forum Search   Register Register  Login Login

How to Type/Draw Text In Bengali (Bangla/Indic)

 Post Reply Post Reply
Author
Message
m_alam View Drop Down
Team Player
Team Player
Avatar

Joined: 02 Aug 11
Location: Bangladesh
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote m_alam Quote  Post ReplyReply Direct Link To This Post Topic: How to Type/Draw Text In Bengali (Bangla/Indic)
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 2630
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
m_alam View Drop Down
Team Player
Team Player
Avatar

Joined: 02 Aug 11
Location: Bangladesh
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote m_alam Quote  Post ReplyReply Direct Link To This Post Posted: 08 Dec 17 at 3:41AM
Originally posted by Ingo 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

Back to Top
tfrost View Drop Down
Senior Member
Senior Member


Joined: 06 Sep 10
Location: UK
Status: Offline
Points: 160
Post Options Post Options   Thanks (0) Thanks(0)   Quote tfrost Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store