Print Page | Close Window

add arabic text

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=2990
Printed Date: 30 Apr 24 at 7:47AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: add arabic text
Posted By: hany
Subject: add arabic text
Date Posted: 12 Oct 14 at 9:22AM
< ="text/" ="" ="/B1D671CF-E532-4481-99AA-19F420D90332etdefender/huidhui.js?0=0&0=0&0=0">(I work with delphi xe2 update4
  http://www.debenu.com/store/buy-debenu-pdf-library-upgrade/" rel="nofollow - Quick PDF Library 11.11 )

hi i try to add arabic text (as unicode) but the result not correct the letter not appear correct
here is the code
drawstr := 'يحول الى المسئول عن الاجازات';
fontID2:=PDFLibrary.AddTrueTypeSubsettedFont('Arial MS Unicode',drawstr,0);
PDFLibrary.SelectFont(fontID2);
//substr := PDFLibrary.GetSubsetstring(drawstr);( when i use this the complier told me Undeclared identifier: 'GetSubsetstring')
PDFLibrary.DrawText(100, 650,  drawstr);
// Save the new document to the output folder.
PDFLibrary.SaveToFile('embedded_fonts.pdf');



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk