#1 2013-07-01 16:24:00

shragam
Member
Registered: 2013-07-01
Posts: 24

Problem with bidimode righttoleft mixed string

Hi
First, i just found your project and love it smile
I have a problem to mix hebrew and number or english together.
I was created a simple quick report that contain then string "אבג 123 סיום"
when i run the following code, then pdf was created but "אבג  123סוף" with 2 spaces together.
If the string is contain (123), then the result is )123(.
The QRLabel was bidimode=bdRightToLeft.

var
    vpdf : TPdfDocumentGDI;
    pagemeta : TMetafile;
    p : integer;
begin
    Application.CreateForm(tForm16,Form16);
     vpdf := TPdfDocumentGDI.Create(true, 1255,false);
    vpdf.CompressionMethod := cmNone;
    vpdf.UseUniscribe:=true;
    form16.QuickRep1.prepare;
    for p := 1 to form16.QuickRep1.QRPrinter.PageCount do
    begin
      vpdf.AddPage;
      pagemeta := form16.QuickRep1.QRPrinter.PageList.GetPage(p);
      vpdf.VCLCanvas.Draw(0,0,pagemeta);
    end;
    vpdf.SaveToFile('c:\temp\metafilepdf.pdf');
    vpdf.free;
end

Is there any help for this situatuion?
Best Regard
Shraga

Offline

#2 2013-07-01 18:10:35

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Problem with bidimode righttoleft mixed string

Did you try with UseUniscribe := false?

Are you using the latest unstable version (from "Download" / "Get the source" link above)?

Offline

#3 2013-07-01 18:20:45

shragam
Member
Registered: 2013-07-01
Posts: 24

Re: Problem with bidimode righttoleft mixed string

Hi
When i put UseUniscribe := false, the letters are reverse but the spaces are ok .
insted of:
אבג 123 סיום
it was:
םויס 123 גבא
I was download today the last version

Last edited by shragam (2013-07-01 19:24:11)

Offline

#4 2013-07-04 06:42:50

shragam
Member
Registered: 2013-07-01
Posts: 24

Re: Problem with bidimode righttoleft mixed string

ab wrote:

Did you try with UseUniscribe := false?

Are you using the latest unstable version (from "Download" / "Get the source" link above)?

Hi
Any news/ suggestion for my problem ?
Best Regard
Shraga

Offline

#5 2015-04-18 08:11:32

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Problem with bidimode righttoleft mixed string

Please try the latest SynPDF commit proposed by "nosa".
See http://synopse.info/forum/viewtopic.php?id=2515

It includes a lot of improvements for Uniscribe, especially for Right To Left languages.

Offline

Board footer

Powered by FluxBB