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 - Type Bangla (Indic Script) Using QPL
  FAQ FAQ  Forum Search   Register Register  Login Login

Type Bangla (Indic Script) Using QPL

 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: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote m_alam Quote  Post ReplyReply Direct Link To This Post Topic: Type Bangla (Indic Script) Using QPL
    Posted: 10 Sep 15 at 1:11PM
I am trying to type/print Bangla Character (indic/complex script). i know qpl support unicode.. i just can't managed to use it.

i have tried below code:

<?php
$fileName = __DIR__ . "/DrawText.pdf";
$qp = new COM("DebenuPDFLibraryAX1113.PDFLibrary");
$validKey = $qp->UnlockKey("");


$text = '; স্কাউট হওয়া ভারি মজা ;   ; তোমাদের  জন্য মুক্তিযুদ্ধের গল্প ;';
$text = mb_convert_encoding($text, 'UTF-16'); // Convert UTF-8 to UTF-16 (with or without it produce same result)

// Add a subset font for the text string
$id = $qp->AddTrueTypeFontFromFile(__DIR__ . "/Fonts/SolaimanLipi.ttf"); //It's a unicode font that has my all my needed characters
$qp->SelectFont($id);
$qp->DrawText(100, 600, $text);

$result = $qp->SaveToFile($fileName);
$qp = null;
?>


it just produce garbage..

any help will highly appreciated...

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

Joined: 02 Aug 11
Location: Bangladesh
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote m_alam Quote  Post ReplyReply Direct Link To This Post Posted: 11 Sep 15 at 7:00AM
any help?
Back to Top
m_alam View Drop Down
Team Player
Team Player
Avatar

Joined: 02 Aug 11
Location: Bangladesh
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote m_alam Quote  Post ReplyReply Direct Link To This Post Posted: 12 Sep 15 at 10:08AM
hello? anybody?
Back to Top
mLipok View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 Apr 14
Location: Poland, Zabrze
Status: Offline
Points: 453
Post Options Post Options   Thanks (0) Thanks(0)   Quote mLipok Quote  Post ReplyReply Direct Link To This Post Posted: 12 Sep 15 at 8:04PM
did you try this functions ?

SetAnsiMode
SetFontEncoding

Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600
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