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 - Hebrew letters
  FAQ FAQ  Forum Search   Register Register  Login Login

Hebrew letters

 Post Reply Post Reply
Author
Message
SorinH View Drop Down
Beginner
Beginner


Joined: 06 Mar 12
Location: Israel
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote SorinH Quote  Post ReplyReply Direct Link To This Post Topic: Hebrew letters
    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
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.



Edited by AndrewC - 07 Mar 12 at 3:27AM
Back to Top
SorinH View Drop Down
Beginner
Beginner


Joined: 06 Mar 12
Location: Israel
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote SorinH Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
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