Print Page | Close Window

Hebrew letters

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


Topic: Hebrew letters
Posted By: SorinH
Subject: Hebrew letters
Date Posted: 06 Mar 12 at 3:47PM
Hello

I try to evaluate the library with the Delphi XE2 Ver.

I've notice that the library can't create a pdf file with hebrew letters. I've seen that this issue was raise in the past but
I can't figure where the things stay by now?

Thanks
Sorin



Replies:
Posted By: AndrewC
Date Posted: 07 Mar 12 at 3:25AM
The following code will generate Hebrew text in QPL 8.xx.

            // Hebrew
            int fid2 = QP.AddTrueTypeSubsettedFont("Arial MS Unicode", "ABCDEF123456אבגדה", 0);
            QP.SelectFont(fid2);
            QP.DrawText(50, 80, "אבגדה   ABCDEF123456");

            // Russian
            int fid1 = QP.AddTrueTypeSubsettedFont("Arial MS Unicode", "ФЫВАABCDEF123456", 0);
            QP.SelectFont(fid1);
            QP.DrawText(50, 50, "ФЫВА  ABCDEF123456");

            // Korean
            int fid3 = QP.AddTrueTypeSubsettedFont("Gulim", "안녕하세요ABCDEF123456", 0);
            QP.SelectFont(fid3);
            QP.DrawText(50, 110, "안녕하세요    ABCDEF123456");

NOTE : This forum converts the Hebew charaters to 'x x x '  Replace the 'x  x x '  with actual Hebrew characters and they will output correctly.

Andrew.



Posted By: SorinH
Date Posted: 07 Mar 12 at 3:44PM
Thanks Andrew

I try this code on Delphi XE2:

uses
ComObj;

procedure printPdf
var
QP: Variant;
fid2: Integer;
begin
QP := CreateOleObject('QuickPDFLite0812.PDFLibrary');
fid2 := QP.AddTrueTypeSubsettedFont('Arial MS Unicode', 'ABCDEF123456אבגדה', 0);
.....

It raise the error:
"Method AddTrueTypeSubsettedFont not supported by automation object"

What I'm missing now?

Thanks
Sorin


Posted By: AndrewC
Date Posted: 12 Mar 12 at 1:14PM

It is not possible to draw Hebrew characters using the Lite version of the library. The AddTrueTypeSubsettedFont function is only available in the full version or the trial version.

Andrew.



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